SELECT * FROM employee a
INNER JOIN
(SELECT EmpID,MAX(WorkDate) AS WorkDate
FROM employee GROUP BY EmpID) b
ON a.EmpID = b.EmpID AND a.WorkDate = b.WorkDate
ORDER BY a.EmpID
SELECT * FROM employees a
INNER JOIN
(SELECT emp_id, MIN(datestart) AS workdate
FROM employees GROUP BY emp_id) b
ON a.emp_id = b.emp_id AND a.workdate= b.workdate
ORDER BY a.emp_id
SELECT * FROM employees a
INNER JOIN
(SELECT emp_id, MIN(datestart) AS datestart
FROM employees GROUP BY emp_id) b
ON a.emp_id = b.emp_id AND a.datestart= b.datestart
ORDER BY a.emp_id