DuckDB 2 · SQL features

Group by all non-aggregated columns

Skip listing the grouping columns by hand.

SELECT region, product, sum(amount) AS total FROM sales GROUP BY ALL;

Official DuckDB 2 documentation

More sql features commands

All sql features commands · DuckDB 2 cheatsheet

Was this page helpful?