Skip to content

Glossary: SQL Basics

GROUP BY

A clause that splits rows into groups sharing a value and runs aggregates once per group, such as one summary row per category or per month. Every other SELECT column must be grouped or inside an aggregate.

Where the book teaches it

Related terms

Aggregate functionHAVING