有没有什么开窗函数的写法,我的是mysql
https://blog.csdn.net/qq_16990363/article/details/53466255,看看这个
SELECT * FROM 表 A WHERE EXISTS (SELECT * FROM (
SELECT PERSONNEL,MAX(DEPARTURE_TIME) [DEPARTURE_TIME] FROM 表 GROUP BY PERSONNEL
) B WHEREE A.PERSONNEL=B.PERSONNEL AND A.DEPARTURE_TIME=B.DEPARTURE_TIME)