Specialties with high average pay
mediumShow specializations whose average salary exceeds 175000, highest average first.
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT specialization, AVG(salary) AS average_salary FROM doctors GROUP BY specialization HAVING AVG(salary) > 175000 ORDER BY average_salary DESC;