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: Second highest value when using group by

Re: Second highest value when using group by

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Tue, 7 Dec 2004 20:00:14 +0100
Message-ID: <41b5fd09$0$31293$636a15ce@news.free.fr>

"GQ" <dbaguy_ott_at_yahoo.com> a écrit dans le message de news:1102444897.169369.5130_at_c13g2000cwb.googlegroups.com...
> This is really neet, but when I tried it, and inserted the data twice,
> it stoped working, because there are two rows ranked 1,
> and then it jumped to r=3 (no more rows with r=2)
>

Use dense_rank instead of rank.

Regards
Michel Cadot Received on Tue Dec 07 2004 - 13:00:14 CST

Original text of this message

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