Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> How to limit the number of rows returned in a select statement
Hi does anyone know how to limit he number of rows returned by a select.
I tryed using rownum. but this does not work with an order by.
my select: select X,Y from table_a order by Y.
I only want the first 15 rows after the sort. Using rownum <=15 brings back the first 15 rows in the table.
Need help fast
Thanks
Stefan Fallet
E-Mail: stfallet_at_fallet.com Received on Tue Jun 03 1997 - 00:00:00 CDT
![]() |
![]() |