Return
departments.name — department nameCOUNT(employees.id) — number of employees in the departmentAVG(employees.salary) — average salary in the departmentAVG(employees.salary) in descending order.Expected output
| name | COUNT(e.id) | AVG(e.salary) |
|---|---|---|
| 3 rows — values hidden, that's the puzzle | ||
Your query should return 3 rows with these columns. Your column aliases don't need to match.