December 25, 2009 at 8:32 pm
Dear Experts,
Good Morning.Suppose i have 500 records in table name called author table.
Question
Is it possible to query data records betwen 100th record to 200 th record?
Version:SQL Server 2005
December 26, 2009 at 8:06 am
as long as you know how the data will be ordered, row_number() function is probably the best solution:
SELECT * FROM
(
SELECT row_number() over (ORDER BY YourColumn) As RW,
* from YourTable
) MyAlias
WHERE RW BETWEEN 200 and 300
Lowell
December 26, 2009 at 8:02 pm
Thanks Team
Have a nice day!!!
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply