# Grouping Aggregations

GROUP BY splits the rows into groups and runs the aggregates once per group. Every column in the SELECT that isn't aggregated must be in the GROUP BY.

![Cheat sheet: Grouping Aggregations](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/9519ff613c87451f8894b817f48e5ca5.webp)

- Category: SQL
- Level: Journeyman
- Tags: group by, sql, t-sql
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/aggregate-functions-in-t-sql-grouping-aggregations-cheat-sheet
