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 would you retrieve the first five records

Re: How would you retrieve the first five records

From: Andrew Babb <andrewb_at_mail.com>
Date: Tue, 30 Mar 1999 08:32:53 +0800
Message-ID: <37001BB5.5C53F59E@mail.com>


Sorry Ken, but you cannot put an ORDER BY statement in the subquery until Oracle8 v8.1.

Rgds
Andrew

Ken Geis wrote:

> You can actually do this with Oracle 7.3.3 and later.
>
> That first line is "select * from" though.
>
> Ken
>
> Bert Scalzo wrote:
> >
> > In Oracle 8i (i.e. 8.1.5) you can do this easily via inline views:
> >
> > select *
> > (select * from employee order by salary)
> > where rownum <= 5;
Received on Mon Mar 29 1999 - 18:32:53 CST

Original text of this message

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