问题

image.png
image.png

思路

  1. select e.emp_no, m.emp_no
  2. from dept_emp e, dept_manager m
  3. where e.dept_no = m.dept_no and e.emp_no != m.emp_no
  4. and e.to_date = '9999-01-01'
  5. and m.to_date = '9999-01-01'