Admission length category
hardReturn each admission id and label it as Open when discharge_date is NULL, otherwise Closed.
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT admission_id, CASE WHEN discharge_date IS NULL THEN 'Open' ELSE 'Closed' END AS status FROM admissions ORDER BY admission_id;