select * from test;
name score
---- -----
yang 99
yang 98
yang 100
li 80
li 90
select name,score,row_number() over (partition by name order by score desc) "rownum "from test;
name score rownum
---- ----- ------
yang 100 1
yang 99 2
yang 98 3
li 90 1
li 80 2
Monday, September 18, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment