#使用窗口函数DENSE_RANK,ORDER BY DESC 倒序排序,为每个员工的进场时间排序,考虑到员工可以在同一天进场,所以使用了DENSE_RANK SELECT emp_no,birth_date,first_name,last_name,gender,hire_date FROM ( SELECT *, DENSE_RANK()OVER(ORDER BY hire_date DESC) rk FROM employees ) e WHERE rk =3