Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> How to limit the number of rows returned in a select statement

How to limit the number of rows returned in a select statement

From: Stefan Fallet <stfallet_at_fallet.com>
Date: 1997/06/03
Message-ID: <33943265.19B5@fallet.com>#1/1

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US