SELECT d.dept_no,d.emp_no,max(s.salary) maxSalary
from dept_emp d inner join salaries s on d.emp_no=s.emp_no
group by d.dept_no;
SELECT d.dept_no,d.emp_no,max(s.salary) maxSalary
from dept_emp d inner join salaries s on d.emp_no=s.emp_no
group by d.dept_no;