Practice ยท 2 of 2
Aggregate by Region
CHALLENGE
Difficulty: intermediate+25 XP
Given table sales(region TEXT, amount INTEGER), implement totals_by_region(conn) returning a dict region โ SUM(amount), sorted by region name (insertion order of the dict).
Press Submit to check your solution.
Back to lesson: Practice: SQL Drills