我将这些表格包含以下列:
Employee24( EMPLOYEEID, FIRSTNAME, LASTNAME,DATEOFJOINING );
我想找到有最长服务期的员工。
Select * from employee24 where Max(DATEOFJOINING);
答案 0 :(得分:0)
使用子查询:
Select * from employee24
where DATEOFJOINING = (
SELECT Max(DATEOFJOINING)
FROM employee24
);