题解 | #对所有员工的薪水按照salary降序进行排名#
对所有员工的薪水按照salary降序进行1-N的排名
https://www.nowcoder.com/practice/b9068bfe5df74276bd015b9729eec4bf
select emp_no ,salary ,dense_rank()over(order by salary desc) rank1 from salaries where to_date = '9999-01-01' order by rank1 , emp_no
