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: Top N Results From Aggregate Values in A Select

Re: Top N Results From Aggregate Values in A Select

From: SL <sebastien_louchart_at_yahoo.fr>
Date: 7 Dec 2005 23:44:16 -0800
Message-ID: <1134027856.065331.219810@o13g2000cwo.googlegroups.com>


You can also RTFM for Rank analytic function. Otherwise, select from your select statement (inline view) ordering by Request desc and selecting the N first rows using rownum. And, as Sybrand Bakker pointed it, look up the NG for Top N Queries :)

-- 
SL
Received on Thu Dec 08 2005 - 01:44:16 CST

Original text of this message

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