EasyOutput prediction
Simple CASE (equality form)
Given this table (orders):
| id | status |
|---|---|
| 1 | shipped |
| 2 | pending |
| 3 | returned |
What does this query return?
SELECT id,
CASE status
WHEN 'shipped' THEN 'Done'
WHEN 'pending' THEN 'Waiting'
ELSE 'Other'
END AS label
FROM orders;← → arrow keys to navigate
Sign in to save your progress.