Your question is SQL: Count Employees by Department. Start with the requirements and the one table 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.
Kovai's employee directory needs a department-level headcount for workforce reporting. Write a PostgreSQL query that counts employees in each department from the employees table.
Unassigned.| Column | Type | Description |
|---|---|---|
| employee_idPK | INTEGER | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee's full name |
| department_name | VARCHAR(100) | Employee's department |