184-department-highest-salary
DevGod
Elf Vtuber
SELECT D.name as Department, E.name as Employee, E.salary as SalaryFROM Employee E JOIN Department DON E.departmentId = D.idWHERE E.salary=( SELECT max(Salary) from Employee E2 where E2.DepartmentId=D.id)