SQL FOR BUSINESS ANALYSTS · REFERENCE CARD

Aggregation in depth: HAVING, distinct counts and grouping levels

Counting is more than counting every row. Learn where a filter goes before or after grouping, how distinct counts differ, and how to add subtotal rows.

Derived from Aggregation in depth: HAVING, distinct counts and grouping levels. Every claim on this card is sourced on that page. All business analysis reference cards.