SELECT t1.dept_no, t1.emp_no, s.salaryFROM (SELECT de.dept_no,de.emp_no FROM dept_emp de LEFT JOIN dept_manager dm ON de.emp_no=dm.emp_no WHERE dm.emp_no IS NULL) t1INNER JOIN salaries s ON t1.emp_no = s.emp_no