Quantcast
Viewing all articles
Browse latest Browse all 35

Answer by vinaych for How to select the nth row in a SQL database table?

WITH r AS (  SELECT TOP 1000 * FROM emp)SELECT * FROM rEXCEPTSELECT TOP 999 FROM r

This will give the 1000th row in SQL Server.


Viewing all articles
Browse latest Browse all 35

Trending Articles