Professional Documents
Culture Documents
RIGHT JOIN
1. Write an SQL query that get the Worker’s ID, First name and Last name on the left side of the table.
2. We want to know who has the highest bonus and know what their position in the company is. In
order to do so. Write a Query that show their ID, Last name, department, their position and especially
how much is their bonus and when will they have it. Use LEFT JOIN to compare and know who those
people are.
OUTER JOIN:
SELECT * FROM WORKER_TABLE WORK LEFT OUTER JOIN BONUS_TABLE BONUS ON
WORK.WORKER_ID = BONUS.WORKER_REF_ID;