23.【较难】窗口函数
对所有员工的薪水按照salary进行按照1-N的排名
http://www.nowcoder.com/questionTerminal/b9068bfe5df74276bd015b9729eec4bf
select emp_no,salary, dense_rank() over(order by salary desc) as rank from salaries where to_date='9999-01-01' order by rank,emp_no asc
窗口函数:https://blog.csdn.net/weixin_43412569/article/details/107992998
数据分析阿宇君的SQL题解 文章被收录于专栏
数据分析的SQL题目