Admissions with patient names
mediumFor each admission, show its id, diagnosis, and the patient’s full name. Order by admission id.
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT a.admission_id, a.diagnosis, p.first_name, p.last_name FROM admissions AS a JOIN patients AS p ON a.patient_id = p.patient_id ORDER BY a.admission_id;