tags:

views:

55

answers:

3

hi ,

i want to select top 500 records later records (i.e from 501 records) to till another 100 records.

+2  A: 

To select the first 500 records after recordId 6742:

select  top 500 *
from    YourTable
where   recordId > 6742
order by
        recordId
Andomar
Thank you so much for your quick response..it helped me....
A: 

Depending on your engine you should check keywords LIMIT, OFFSET, ROWCOUNT and TOP.

Unreason
A: 

For MySQL you could do SELECT * FROM table ORDER BY column LIMIT 500, 100. There isn't any generic solution for this so it would help to know what database you're working with.

Mikko Wilkman