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 -> Re: How to limit the number of rows returned in a select statement

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

From: <jguerrer_at_infogration.com>
Date: 1997/06/04
Message-ID: <3395a9cd.129135247@nntp.best.com>#1/1

On Tue, 03 Jun 1997 17:04:05 +0200, Stefan Fallet <stfallet_at_fallet.com> wrote:
<snip>
>I tryed using rownum. but this does not work with an order by.
<snip>

It's not a pretty solution but it works: use pl/sql and retrieve the first 15 rows.

Rownum works before the order by so you get the first 15 rows and then they are sorted.
HTH

--
John E. Leon Guerrero <jguerrer_at_infogration.com>
Oracle DBA Consultant
Received on Wed Jun 04 1997 - 00:00:00 CDT

Original text of this message

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