select column
from table
order by row_number() over ()
limit 1000 offset 200;
I have the above query in PostgreSQL. I want the SQL Server equivalent of the above. I tried the one below:
select top 1000 offset 200 column
from table
order by row_number() over (ORDER BY column ASC)
limit 1000 offset 200;
but it throws the following error.
Incorrect syntax near '17000000'.