ROW_NUMBER() は、この種の処理に非常に役立ちます。
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
ROW_NUMBER() は、この種の処理に非常に役立ちます。
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