Your question is Employee Count Per Department Query. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
IFS maintains organizational data in emp_tab and dept_tab. Write a PostgreSQL query that reports the number of employees assigned to every department.
dept_id does not match a department, while still retaining all departments.| Column | Type | Description |
|---|---|---|
| name | VARCHAR(100) | Employee name |
| dept_id | INT | Department identifier assigned to the employee |
| Column | Type | Description |
|---|---|---|
| dept_idPK | INT | Unique department identifier |
| dept_name | VARCHAR(100) | Department name |