Comment Comment by slc The second question is actually trickier than one might think.The obvious answer - something likeselect Name, MAX(Salary) from Employees group by DepartmentIdis wrong. parent slc 13 years ago
The obvious answer - something like
select Name, MAX(Salary) from Employees group by DepartmentId
is wrong.