What is the difference between a RIGHT JOIN and a LEFT JOIN in SQL?
Asked in the Round 1 technical stage. Using the provided tables, write a query that demonstrates the rows preserved by each join type.
join_type, consultant_id, consultant_name, engagement_id, engagement_nameLEFT JOIN or RIGHT JOIN.join_type, then consultant_id, then engagement_id, with NULL values last.| Column | Type | Description |
|---|---|---|
| consultant_idPK | INT | Unique consultant identifier |
| consultant_name | VARCHAR(100) | Consultant name |
| Column | Type | Description |
|---|---|---|
| engagement_idPK | INT | Unique engagement identifier |
| engagement_name | VARCHAR(150) | Engagement name |
| consultant_id | INT | Consultant assigned to the engagement |