Explain SQL joins.
Asked in the Round 3 - Hiring Manager stage. Fundamentals check.
Using the supplied department and employee data, write a query that returns every department and the number of associated employees, including departments with no matching employees.
department_name and employee_countdepartment_name| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |
| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee name |
| department_id | INT | Associated department identifier |