SQL exercise · about 5 minutes · free
HAVING a Good Time
WHERE filters rows. HAVING filters groups. Interviewers love this one.
HAVING filters after grouping, so it can use aggregates.
SELECT map FROM matches GROUP BY map HAVING COUNT(*) > 3
Your quest: Show maps whose average kills are above 10. Return
map and AVG(kills) as avg_kills.Starter code
-- groups with a high average -- Run this first to see the matches table, then change it to answer the task. SELECT * FROM matches LIMIT 5;