需要一个日期最大的筛选条件,可以用窗口函数排序后选序号,也可以直接用max的字函数作为查询条件。
select *
from
employees
where hire_date=(select max(hire_date) from employees)