select all t1.Name as Department, t2.Name as Employee, t2.Salary from
join Employee t2
on t2.DepartmentId = t1.Id
group by t1.Id;
t2 not in group by, so can't use t2.name in select
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.