Its a small query that will help you to find the records from from n to m from a table having N records.
Where N :- total records in the table.
n :- starting record number.
m :- ending record number.
select top 20 * from School
except
select top (5) * from School
so, here it first select top 20 records and from it it discards the 1st top 5 records.
Enjoy!
No comments:
Post a Comment