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