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

Home -> Community -> Usenet -> c.d.o.tools -> Re: How to use 'Top' in oracle?

Re: How to use 'Top' in oracle?

From: Douglas Nichols <dnichols_at_fhcrc.org>
Date: Fri, 29 Sep 2000 20:56:38 -0700
Message-ID: <39D56476.58D3714C@fhcrc.org>

You cannot do the order by in the inner select.

Dirk Mika wrote:

> Hi,
>
> what about:
>
> select * from (select * from products order by price) where rownum <= 3;
>
> Dirk Mika
> --
> Bayer AG
> WD-AED /LEV
> D-51368 Leverkusen
> Telefon: +49 (214) 30-50360
> Telefax: +49 (214) 30-20031
> Email : dirk.mika.dm1_at_bayer-ag.de

--
Cheers, dn

Douglas Nichols                              dnichols_at_fhcrc.org
---------------------------------------------------------------
National Wilms Tumor Study Group                   206.667.4283
Seattle, WA
Received on Fri Sep 29 2000 - 22:56:38 CDT

Original text of this message

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