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: ROWNUM question??

Re: ROWNUM question??

From: Bradley Peters <bmpeters_at_houston.geoquest.slb.com>
Date: Tue, 19 Jan 1999 16:34:21 -0600
Message-ID: <36A5086D.7D364228@houston.geoquest.slb.com>


Oscar Paredes wrote:

> Hi all!
>
> I want to select the first row of a SELECT statement
> that have a ORDER BY, like:
>
> select e.name
> from employee e
> where rownum=1
> order by e.name
>
> But,... unfortunatelly... this don't work!! :-(
>
> Someone know how to do this????
>
> Thanks,
> Oscar

where rownum < 2 Received on Tue Jan 19 1999 - 16:34:21 CST

Original text of this message

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