select d.Name as Department, e.Name as Employee, e.salary
from Employee as e
join Department as d
and e.Salary >= (select MAX(Salary) from Employee as e2 where e.DepartmentId=e2.DepartmentId)
Why it worked in my local but internal error here?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.