Classify patient height
hardReturn each patient id and label height as short (<160), average (160–180), or tall (>180).
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT patient_id, CASE WHEN height < 160 THEN 'Short' WHEN height <= 180 THEN 'Average' ELSE 'Tall' END AS height_group FROM patients ORDER BY patient_id;