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

 

posted on 2020-02-13 10:27  御不凡  阅读(3808)  评论(0编辑  收藏  举报