SELECT d.NAME AS 'Department',
    e.NAME AS 'Employee',
    e.Salary
FROM employee e
    JOIN department d ON e.departmentId = d.Id
WHERE (e.departmentId, e.Salary) IN (
        SELECT departmentId,
            Max(Salary)
        FROM employee
        GROUP BY departmentId
    );