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

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, row_number()over(order by hire_date desc) r
 from employees) a
 where a.r=1

可以先将入职时间排序,再进行查找

全部评论

相关推荐

点赞 评论 收藏
分享
03-28 19:11
铜陵学院 C++
有礼貌的山羊追赶太阳:太典了,连笔试都没有开始就因为HC满了而结束了,而且还卡你不让你再投其他部门的。
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务