Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to get middle rows in a table

user10403630Oct 19 2011 — edited Oct 19 2011
Hi,

if I have a table of 1000 records, I need to fetch 100 at a time. or say 200 to 300 records. Can anyone please suggest a best way of doing it? I am following the below approach.

select * from (select *,rownum num from table1 )where num >200 and num <300

is there any other better way (in terms of performance)??

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2011
Added on Oct 19 2011
4 comments
1,619 views