CASE expressions
Return conditional values.
- 01Classify patient heighthard
Return each patient id and label height as short (<160), average (160–180), or tall (>180).
- hard
- 03Admission length categoryhard
Return each admission id and label it as Open when discharge_date is NULL, otherwise Closed.