Tag archive
Commands grouped around the same concept, pattern, or recurring problem.
Use `GROUP BY CUBE(col_a, col_b)` to generate subtotals for every possible combination of those columns — the full power set — in a single query.