SQL exercise · about 5 minutes · free
CASE: Label Your Players
Dashboards love buckets: Rookie, Veteran, Elite. CASE turns numbers into labels.
CASE WHEN ... THEN ... ELSE ... END works like if/else inside a query. The first matching condition wins.
Your quest: Show each
name and a tier: 'Elite' for level 30+, 'Veteran' for 15–29, otherwise 'Rookie'.Starter code
-- CASE WHEN ... THEN ... END AS tier -- Run this first to see the players table, then change it to answer the task. SELECT * FROM players LIMIT 5;