select distinct ms.dept_no,a.emp_no,ms.ma from ( select distinct de.dept_no, max(s.salary) over(partition by de.dept_no) as ma from dept_emp de join salaries s on de.emp_no = s.emp_no)ms join ( select de.dept_no, de.emp_no, s.salary from salaries s join dept_emp de on de...