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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQL: Select first 10 records, next 10, etc

545100Mar 16 2007 — edited Mar 16 2007
Hi, I need to select the first 10 records (from 0 to 10), then the next 10 (i.e from row 11 to 20), then from row 21 to 30 etc. from my database. My query is as follows:

select t1.id,t1.total_amount,t1.paid_amount,t1.unpaid_amount,
to_char(t1.date_created,'YYYY-MM-DD') date_created,
t1.num_transactions,substr(t2.name,11,99) batch_type,t1.paid_transactions,
t1.unpaid_transactions,t1.status
from table1 t1,table2 t2
where (t1.status = 'Confirmed' or t1.status = 'Rejected')
and t1.batch_type_id = t2.id
order by t1.date_created desc


Thanx!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2007
Added on Mar 16 2007
7 comments
753 views