add_fk.sql 403 B

123456789101112131415161718
  1. select * from hx_employee_occupation heo
  2. where employee_id not in (
  3. select id from hx_employee
  4. );
  5. select * from hx_employee_department
  6. where employee_id not in
  7. (
  8. select id from hx_employee
  9. );
  10. select * from hx_employee_occupation
  11. where occupation_id not in
  12. (select id from hx_occupation);
  13. select *
  14. from hx_employee_department where department_id not in
  15. (select id from hx_department);