Full Outer Join!
FULL OUTER JOIN:
(i) HR manager to data analyst: Bring me the details of employees and their corresponding department details and the details of department who doesn’t have any employee.
SELECT * FROM EMPLOYEES E FULL OUTER JOIN DEPARTMENTS D ON E.DEPARTMENT_ID= D.DEPARTMENT_ID;
SELECT * FROM JOB_HISTORY JH FULL OUTER JOIN JOBS J ON JH.JOB_ID= J.JOB_ID;
Comments
Post a Comment