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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to retrieve row number X to row Y

Status
Not open for further replies.

Nicolasb

Programmer
Feb 15, 2001
3
CA
Hi!

My query: SELECT * FROM table
Return 100 rows

I want to retrieve records from row number 20 to
row number 30...

How can I do this?

Thank you very much,
Nicolas
 
Hi, try this...

SELECT TOP 10 * FROM table
WHERE fieldid NOT IN
(SELECT TOP 20 fieldid FROM table)


Note: Replace the fieldid with a unique field.

Andel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top