Admissions per diagnosis
mediumCount admissions per diagnosis with more than three admissions; show the largest counts first.
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT diagnosis, COUNT(*) AS admission_count FROM admissions GROUP BY diagnosis HAVING COUNT(*) > 3 ORDER BY admission_count DESC, diagnosis;