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

Lesson Progress

Practice This TopicTake QuizBuild a SQL Project

Ready to practise?

Apply what you learned with a hands-on challenge.

Practise This Topic