Tag archive
Commands grouped around the same concept, pattern, or recurring problem.
Use `SUM(...) OVER ()` to compare each row's value to the total without collapsing the result set.
Bucket dates into month starts, then aggregate counts or totals per month.
Use more than one column in `GROUP BY` when each combination defines a separate aggregate bucket.