Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: get x number of records from the table
Hi!
CN> varchar2(100));", and some records inserted in the table tab, To get CN> the records between 30-60, you may issue the next statement:
CN> select val from CN> (select val from tab order by val) CN> where rownum <30 CN> minus CN> select val from CN> (select val from tab CN> order CN> by 1) CN> where rownum <=60 CN> /
select val
from
(
select val, rownum row_num
from
(
select val from tab order by val
Bye
![]() |
![]() |