Cities with at least four patients
mediumReturn cities with at least four patients and their counts.
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT city, COUNT(*) AS patient_count FROM patients GROUP BY city HAVING COUNT(*) >= 4 ORDER BY city;