考察limit offset 搭配使用 使用desc降序排序
不能排序同一天有只有一个员工入职,可用distinc去重
select * from employees WHERE
hire_date=(
select DISTINCT hire_date from employees
ORDER by hire_date DESC
limit 1 offset 2
) 
考察limit offset 搭配使用 使用desc降序排序
不能排序同一天有只有一个员工入职,可用distinc去重
select * from employees WHERE
hire_date=(
select DISTINCT hire_date from employees
ORDER by hire_date DESC
limit 1 offset 2
)