Business Analysis / Learning brief
Sam counts lists, owners and subtotals
In simple terms / 01
What this means in plain language
Sam uses HAVING, a distinct count and ROLLUP (a SQL option that adds subtotals) on the Daily List tasks.
Complete lesson / 02
Understand the full idea, step by step
Analogy: a ballot count. Counters first throw out the spoiled papers, then tally by ward, then announce only the wards with more than a hundred votes.
Throwing out papers and filtering wards are two different steps.
WHERE is the first step and HAVING is the second. Sam, an analyst at Daily List, a to-do list app, learns which filter goes where.
Evidence & review / 03
Evidence & review
The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.
Aggregation in depth. The people, app and data are invented.
What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own.
Sources for this brief — 3 sources
- Market practice
SELECT command reference (PostgreSQL documentation) ↗ — PostgreSQL · PostgreSQL select reference: where filters individual rows before grouping, having filters the groups that group by makes, and aggregates are worked out before the having clause is read (search excerpt, page not opened)
PostgreSQL18 publisher documentation opened on6November2026: SELECT: WHERE/HAVING/output aliases, functional dependence, NULL ordering and LIMIT. No execution on PostgreSQL is claimed; engine-specific examples remain scoped to18.
- Market practice
Table expressions and joined tables (PostgreSQL documentation) ↗ — PostgreSQL · PostgreSQL table expressions page: grouping sets group the rows separately for each set, and rollup is shorthand for a list of grouping sets that adds subtotal rows (search excerpt, page not opened)
PostgreSQL18 publisher documentation opened on6November2026: §7.2 joined tables, grouping and grouping sets. No execution on PostgreSQL is claimed; engine-specific examples remain scoped to18.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.