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!

How select rows 50-100

Status
Not open for further replies.

inse

Programmer
May 1, 2005
2
CZ
How select rows, example 50-100, when function "select limit 50,100 ...." is not suported in db access.
 
You may try something like this:
SELECT TOP 50 * FROM (
SELECT TOP 100 * FROM yourTable ORDER BY sortKey ASC
) AS A ORDER BY A.sortKey DESC

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Your advice was good for me. I thank You very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top