Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Second highest value when using group by
"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