SELECT e.emp_no, m.emp_no
FROM dept_emp AS e
INNER JOIN dept_manager AS m
ON e.dept_no = m.dept_no
WHERE e.emp_no != m.emp_no;
SELECT e.emp_no, m.emp_no
FROM dept_emp AS e
INNER JOIN dept_manager AS m
ON e.dept_no = m.dept_no
WHERE e.emp_no != m.emp_no;