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: Select Distinct (was top N or rewriting MAX)

Re: Select Distinct (was top N or rewriting MAX)

From: Gerard H. Pille <ghp_at_infosoft.be>
Date: 1997/01/28
Message-ID: <5cli6p$185@news1.Belgium.EU.net>#1/1

In article <32E3D378.B2F_at_rci.rogers.com>, AWILSON (awilson_at_rci.rogers.com) says...
>
>or something along those lines, maybe using the rowid.
>
>Just a suggestion.

I believe the only way to retrieve a top N with SQL is to create an index on the column you're interested in, and select with a hint 'index_desc' on that index and a 'where rownum <= 10'.

-- 
Kind reGards
     \ /   |
      X    |
     / \   s
     Gerard
Received on Tue Jan 28 1997 - 00:00:00 CST

Original text of this message

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