Skip to content

2668. Find Latest Salaries

1
2
3
4
5
6
7
8
9
SELECT
  emp_id,
  firstname,
  lastname,
  MAX(salary) AS salary,
  department_id
FROM Salary
GROUP BY 1
ORDER BY 1;