What are the different types of SQL joins?
Asked in the Screening Round stage. This was an opening SQL fundamentals question in the 15-minute screening call.
Using the supplied employees and departments tables, write a query that demonstrates common join types by returning the number of rows produced by each one.
join_type and row_count.join_type.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee name |
| department_id | INT | Employee department identifier |
| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |