SQL exercise · about 5 minutes · free
GROUP BY the Map
Aggregation turns a million rows into one insight.
GROUP BY makes one row per group. Use SUM, COUNT, AVG on each group.
SELECT map, COUNT(*) FROM matches GROUP BY map
Your quest: For each
map, show the map and the total kills as total_kills.Starter code
-- total kills per map -- Run this first to see the matches table, then change it to answer the task. SELECT * FROM matches LIMIT 5;