Admissions with attending doctors
mediumShow each admission diagnosis beside the attending doctor’s name. Sort by admission id.
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT a.diagnosis, d.first_name, d.last_name FROM admissions AS a JOIN doctors AS d ON a.doctor_id = d.doctor_id ORDER BY a.admission_id;