LW008 GROUP BY error

Severity: ErrorFree

A column neither grouped on nor aggregated is read in the select list, HAVING, QUALIFY or ORDER BY, in a window call’s arguments or window, or in a query that aggregates without GROUP BY — in every CTE, subquery and set operation, with CUBE, ROLLUP, GROUPING SETS and GROUP BY ALL understood. A wildcard (*, t.*) counts for the columns it brings: under a GROUP BY it is reported only when they are all known and one is ungrouped, and always in a query that aggregates without GROUP BY.

How it scores

Debugging time saved
Impact
Time to detection
Complexity

Our estimates, from 1 to 5, not measurements. Compare it with the other 53 codes →

Part of

Also in “SQL errors before dbt™ run”

Install free →All 54 diagnostic codes