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: Philippe <parnaud_at_yahoo.com>
Date: Wed, 20 Jan 1999 17:08:04 +0100
Message-ID: <784v6t$sbj$1@concorde.ctp.com>


Hi Oscar,

Try this :

select /*+ RULE */ e.name
from employee e, dual d
where e.name = d.dummy(+) and rownum = 1 order by e.name

HTH, Philippe

Oscar Paredes wrote in message <36A4E33D.74474199_at_fib.upc.es>...
>
>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
>
Received on Wed Jan 20 1999 - 10:08:04 CST

Original text of this message

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