select e.emp_no,m.emp_no,e.salary,m.salary from (select dept_emp.emp_no,dept_emp.dept_no,salaries.salary from dept_emp left join salaries on dept_emp.emp_no=salaries.emp_no) e, (select dept_manager.emp_no,dept_manager.dept_no,salaries.salary from dept_manager left join salaries on dept_manager.emp_no=salaries.emp_no) m where e.dept_no= m.dept_no and e.salary>m.salary