MySQL Solution using UNION and NOT IN | Nested Query
STEPS\n- Select those id\'s from first table which are not in second table then select those id\'s from second table which are not in first table,\n- Take union
#### STEPS\n- Select those id\'s from first table which are not in second table then select those id\'s from second table which are not in first table,\n- Take union of both result sets\n- Sort the result set by `employee_id`\n\n```\n\nSELECT\n    e.employee_id \n    FROM Employees as e \n        WHERE e.employee_id \n            NOT IN (SELECT employee_id FROM Salaries) \n    UNION\nSELECT s.employee_id\n    FROM Salaries as s\n        WHERE s.employee_id\n            NOT IN (SELECT employee_id FROM Employees)\n    \n    ORDER BY employee_id;\n```
[]