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.
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.