Explain the joins in SQL.
Using the provided tables, write a query that demonstrates the required join behavior by reporting every department, including departments without employees or active assignments. Include only active project assignments in the project count.
department_name, employee_count, and active_project_countdepartment_id ascending| 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 full name |
| department_id | INT | Employee department identifier |
| Column | Type | Description |
|---|---|---|
| assignment_idPK | INT | Unique assignment identifier |
| employee_id | INT | Assigned employee identifier |
| project_id | INT | Project identifier |
| assignment_status | VARCHAR(20) | Assignment status |