Lesson 18 of 3256%
(Progress persistence is disabled until Phase 9)
SQL
Beginner
GROUP BY
Group rows with the same values.
GROUP BY
Group rows with the same values.
Example
-- Count users by country
SELECT country, COUNT(*) as count FROM users GROUP BY country;
Test it Yourself