SQL GROUP BY Clause

Data Analytics 6 min min read Updated: Mar 08, 2026 Beginner
SQL GROUP BY Clause
Beginner Topic 7 of 10

SQL GROUP BY

GROUP BY is used to aggregate data.

sql SELECT country, COUNT(*) FROM customers GROUP BY country;

This query counts customers per country.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators