ROW_NUMBER () rất hữu ích cho loại điều này.
http://msdn.microsoft.com/en-us/library/ms186734 .aspx
SELECT * FROM (
SELECT
ROW_NUMBER() OVER(PARTITION BY ID ORDER BY ID) as RowNum,
ID,
Column1
FROM
Table
) MyData
WHERE RowNum < 10