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

Home -> Community -> Usenet -> c.d.o.misc -> Re: FETCH ROWS ???

Re: FETCH ROWS ???

From: Jim Kennedy <kennedy-family_at_attbi.com>
Date: Thu, 03 Jan 2002 02:02:56 GMT
Message-ID: <kZOY7.5910$Qe1.51209@rwcrnsc53>


The order by occurs after the 100 rows are chosen so that won;t work. select * from (select * from table order by ...) where rownum<100; Jim
<davide_at_yahoo.com> wrote in message
news:a0v7cg$n2dgn$2_at_ID-18487.news.dfncis.de...
> Dulli <dulli_at_dulli.com> wrote:
> > How can I do somthing like this in Oracle 7.x ?
> > Select top 100 * from table order by timestamp desc
>
> SELECT * FROM TABLE WHERE ROWNUM <= 100 ORDER BY...
>
> See the documentation on http://technet.oracle.com
>
> Davide
Received on Wed Jan 02 2002 - 20:02:56 CST

Original text of this message

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