Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

limit & offset

Status
Not open for further replies.

teroy

Programmer
Oct 17, 2000
67
AU
Hi there,
I was wondering if sql server has a command to only get an offset of records specified. ie so if you only wanted to return 10 records you could do so..but you can start from the 20th record returned..instead of the 1st

in other sql apps (ie postgresql) you can do select * from table limit 10,20

how do you do it in sql server? (if the command exists)
select top 100 * from table ?

Thanks in advance...

troy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top