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_at_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 Sat Sep 30 2000 - 05:56:38 CEST

Original text of this message