GROUP BY ALL (deprecated)
non-ISO GROUP BY ALL (deprecated)
What changes
- Input
- all rows (WHERE applies only to aggregate inputs)
- Output or change
- every group, including groups with no qualifying rows (NULL aggregates)
Syntax at a glance
GROUP BY ALL column_expression [ ,...n ]
Work example
A legacy query uses the deprecated GROUP BY ALL form and needs a safe replacement.
Record the current empty-group behavior and rewrite the filter and aggregation with standard GROUP BY logic.
Check your work GROUP BY ALL (deprecated). The rewritten query matches the required rows without GROUP BY ALL.
Open Microsoft Learn for full syntax, permissions, and details for your version.