AntiPattern
Implicit Distinct and Totals
sql-aggregation-semantic-mismatch
UNION and GROUP BY semantics get misread so result sets either lose intended granularity or merge rows unexpectedly, while rollup grouping constraints omit subtotals; the wrong data drives incorrect analytics or decisions.