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 in Oracle

Re: TOP N in Oracle

From: Cris Carampa <cris119_at_operamail.com>
Date: Thu, 03 Feb 2005 13:22:38 +0100
Message-ID: <420217a4$0$6304$5fc30a8@news.tiscali.it>


Jining Han wrote:

> where rownum<=10
> order by ... desc

You mean that, I hope:

select

   cols
from

   (select * from tab order by ordering_cols) ordered_query where

   rownum <= 10
;

Kind regards,

-- 
"For every developer that thinks he can create something that is
non-database specific ... there are two people being paid by the
hour to clean up the mess later" (Daniel A. Morgan)
Received on Thu Feb 03 2005 - 06:22:38 CST

Original text of this message

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