-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
select d.Name as Department, b.Name as Employee, b.Salary as Salary
from (
select max(Salary) as Salary, DepartmentId as DepartmentId
from Employee
group by DepartmentId) as a
inner join Employee as b
on (a.Salary = b.Salary and a.DepartmentId = b.DepartmentId)
inner join Department as d
on (d.Id = a.DepartmentId);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels