Patients with multiple admissions
mediumReturn patients who have more than one admission.
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT patient_id, first_name, last_name FROM patients p WHERE (SELECT COUNT(*) FROM admissions a WHERE a.patient_id = p.patient_id) > 1 ORDER BY patient_id;