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

group by, order by and rownum

From: Brian Murphy <rudie_at_wpi.edu>
Date: Tue, 13 Aug 2002 14:07:33 -0400
Message-ID: <Pine.OSF.4.43.0208131400150.9088-100000@grover.WPI.EDU>


Here's the scenario:

I have a table with ids, parent_ids, and values. What I want to do is

Group all tuples with the same parent id Order by over the ids
return the 2nd tuple for each group (via Rownum, I think)

After trying to get this to work, I've stumbled and cannot figure out how to go about it. Is it even possible to use rownums and groupbys in that fashion?

thanks.

brian Received on Tue Aug 13 2002 - 13:07:33 CDT

Original text of this message

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