题解 | #都给我用窗口函数!!#
查找入职员工时间排名倒数第三的员工所有信息
https://www.nowcoder.com/practice/ec1ca44c62c14ceb990c3c40def1ec6c
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,dense_rank()over( order by hire_date desc) as rk from employees ) as ab where ab.rk = 3
1.本题得用dense_rank,不能用rank,不然排名第三答案会错
2.为什么我用as rank 不行 要用as rk才行,堵了我半天进度!大佬能教一教吗?