Patients without admissions
hardFind patients who have never had an admission.
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT p.patient_id, p.first_name, p.last_name FROM patients p WHERE NOT EXISTS (SELECT 1 FROM admissions a WHERE a.patient_id = p.patient_id) ORDER BY p.patient_id;