The reporting layer groups users into age bands: minor (under 18), adult (18 to 64) and senior (65 and over).
Write a query returning each user's name and their band as age_group.
name, age_groupminor, adult, senior (lowercase)CASE WHEN condition THEN value ... ELSE value END is SQL's if/else.
Branches are checked top to bottom; the first true one wins.
No results yet
Run your code to check it against the examples, or submit to run every test.