描述
有一个员工employees表简况如下:
emp_no | birth_date | first_name | last_name | gender | hire_date |
10001 | 1953-09-02 | Georgi | Facello | M | 1986-06-26 |
10002 | 1964-06-02 | Bezalel | Simmel | F | 1985-11-21 |
10003 | 1959-12-03 | Parto | Bamford | M | 1986-08-28 |
10004 | 1954-05-01 | Christian | Koblick | M | 1986-12-01 |
请你查找employees里最晚入职员工的所有信息,以上例子输出如下:
emp_no | birth_date | first_name | last_name | gender | hire_date |
10004 | 1954-05-01 | Christian | Koblick | M | 1986-12-01 |
参考答案
select * from employees
where hire_date=(select max(hire_date) from employees)