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: First 20 records from a select, after ordering

Re: First 20 records from a select, after ordering

From: Stephan Born <stephan.born_at_beusen.de>
Date: Wed, 03 Nov 1999 10:41:13 +0100
Message-ID: <38200339.CB7157F8@beusen.de>


> > >
> > > If you don't want to use PL/SQL then you could do something like this:
> > >
> > > SELECT *
> > > FROM (SELECT <columns>
> > > FROM <tablename>
> > > ORDER BY <column>)
> > > WHERE rownum < 21
> > >
> > > This would do your job. HTH
> >
> > I thought this was only available in 8i, not 8....
> >

> I don't see why it wouldn't work in earlier versions than that.

This is definitely a feature since Oracle 8.xxxx. Ora 7.x cant do this.

It seems not to function in Oracle 8.0.5 as I tried it

Regards, Stephan
--


Dipl.-Inf. (FH) Stephan Born   | beusen Consulting GmbH
fon: +49 30 549932-17          | Landsberger Allee 392
fax: +49 30 549932-29          | 12681 Berlin
mailto:stephan.born_at_beusen.de  | Germany
---------------------------------------------------------------
       PGP-Key verfügbar       |      PGP-Key available
---------------------------------------------------------------


Received on Wed Nov 03 1999 - 03:41:13 CST

Original text of this message

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