用窗口函数解决入职时间相同的问题 select emp_no,birth_date,first_name,last_name,gender,hire_date from ( select *,rank() over(order by hire_date desc) num from employees ) a where a.num=3