Return
departments.name: the department nameavg_salary: the average salary of employees in the departmentheadcount: the number of employees in the department
Only include departments that have at least 3 employees. Order the results by avg_salary in descending order.Expected output
| name | avg_salary | headcount |
|---|---|---|
| 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.