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: order by, rownum and more

Re: order by, rownum and more

From: Brian Murphy <rudie_at_wpi.edu>
Date: Thu, 8 Aug 2002 15:56:40 -0400
Message-ID: <Pine.OSF.4.43.0208081555040.16287-100000@grover.WPI.EDU>


>select c1, c2, c3
> from ( select c1, c2, c3, rownum r
> from ( select c1, c2, c3
> from T order by b ) )
> where r = 6

Ah yes, very helpful, that's exactly what I was looking for.

To respond to the others, after having done my order by, I have essentially a 6th column, which now has meaning as the 6th.

thanks.

brian Received on Thu Aug 08 2002 - 14:56:40 CDT

Original text of this message

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