← Data Analysis with SQL

Lesson 2 of 3 · 10 min

Counting & summarising

COUNT, SUM, AVG, MIN and MAX turn many rows into one answer.

GROUP BY summarises per category: SELECT city, COUNT(*) FROM customers GROUP BY city.

Practice

Write a query that counts orders per customer.

Quiz

+50 pts
1. Which summarises per category?
2. AVG returns…

Optional resources

Your lesson toolkit

No purchase or partner signup is required to complete this course or earn quiz points.

These are official product links, not active affiliate links. Learnly does not currently earn a commission from them.

DataCamp

Explore guided SQL exercises alongside your queries.

Limited free content; full course access may require payment.

Explore tool

DB Fiddle

Test small SQL examples using fictional sample data.

Browser SQL playground; never paste private or personal data.

Explore tool