一.整排 要求:根据score进行排名,分数相同,名次相同,且连续 表如下图: sql语句: 方法一:select a.score, (select count(distinct b.score) from test01 b where b.score >=a.score) as rank1 from test01 a order by score desc; 结果如下图: 方法二:select score,dense_rank() over(order by score desc) rank2…