select Score,(select count(distinct score) from Scores where score >= s.score) as Rank from Scores s order by score desc

select count(distinct score) from Scores

 

相关文章: