select cf.dept_no, salaries.emp_no, cf.maxx from dept_emp, salaries, ( select mm.dept_no, max(mm.maxSalary) as maxx from dept_emp, salaries, ( select dept_emp.dept_no, max(salaries.salary) as maxSalary from ...