题解 | #查找最晚入职员工的所有信息#

查找最晚入职员工的所有信息

https://www.nowcoder.com/practice/218ae58dfdcd4af195fff264e062138f

 这个可以执行出:select emp_no,birth_date,first_name,last_name,gender,hire_date from( select emp_no,birth_date,first_name,last_name,gender,hire_date, rank()over(order by hire_date desc) 排名 from employees ) a where a.排名 = 1
这个执行不出,是为什么?select * from (select * , rank()over(order by hire_date desc) r from employees) a where a.r=1

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务