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

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

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) as posn
from employees) ak
where ak.posn=1

全部评论

相关推荐

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