题目描述:
1 查找最晚入职员工的所有信息 2 CREATE TABLE `employees` ( 3 `emp_no` int(11) NOT NULL, 4 `birth_date` date NOT NULL, 5 `first_name` varchar(14) NOT NULL, 6 `last_name` varchar(16) NOT NULL, 7 `gender` char(1) NOT NULL, 8 `hire_date` date NOT NULL, 9 PRIMARY KEY (`emp_no`));
解答:
1 select * from employees where hire_date = (select max(hire_date) from employees);