题解 | #对所有员工的薪水salary降序进行1-N排名#

对所有员工的薪水按照salary降序进行1-N的排名

https://www.nowcoder.com/practice/b9068bfe5df74276bd015b9729eec4bf

这个题简单啊,不应该是较难吧
select emp_no,salary,dense_rank()over(order by salary desc)
from salaries
order by salary desc,emp_no

全部评论

相关推荐

点赞 评论 收藏
分享
会飞的猿:本人来了,手一抖转错了,我是学生,能还给我吗
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务