FireEdgeX
0

LESSON 04 ยท SQL

Count and group data

Aggregate functions summarize rows, and GROUP BY creates one summary per group.

5 min readIn progress

THE IDEA

Understand the concept

COUNT, SUM, and AVG turn many rows into summary values. GROUP BY partitions rows by one or more fields before the aggregate runs, which is useful for comparing categories.

WORKED EXAMPLE

See it in context

Example