Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL prodecure to compute ranking
that's solution of mine if you dont want to use oracle's analytic functions
select b.* from
(select rownum as rank,
id_user, points from (select * from users order by points desc)
id_user, points from (select * from users order by points desc)
would this fits your requirements?
(just 2 sorts maybe avoidable with indexes)
Received on Wed Sep 11 2002 - 09:23:18 CDT