>>100
http://support.microsoft.com/default.aspx?scid=kb;JA;194973
とか読んで、あとはぐぐって。

必要ならSQLの集計関数使うといいと思う。