Business Analysis / Learning brief

Nina finds users without tasks

What this means in plain language

Sam and Nina find users with no tasks three ways and learn why NOT IN returned nothing.

Understand the full idea, step by step

Analogy: two guest lists. Two parties have guest lists. You can ask: who is on either list, who is on both, and who is on the first but not the second.

To ask whether a guest has any gift on the table, you check the table for each guest.

Set operators and EXISTS answer those questions. Sam, an analyst at Daily List, uses them to find gaps.

Evidence & review

REVIEWED 2026-10-31

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.

A made-up Daily List database used to teach SQL (Structured Query Language) to analysts. The people, the app and the numbers 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 — 4 sources
  1. Market practice

    Combining Queries: UNION, INTERSECT, EXCEPT (PostgreSQL documentation) ↗ — PostgreSQL Global Development Group · PostgreSQL documentation: EXCEPT returns the rows of the first query that are not in the second, drops repeated rows unless ALL is used, and needs queries with matching columns (search excerpt, page not opened)

    §7.4 UNION/INTERSECT/EXCEPT and ALL. PostgreSQL18 implementation, not a universal SQL mandate. · Checked 2026-11-06

    PostgreSQL18 publisher documentation opened on6November2026: §7.4 UNION/INTERSECT/EXCEPT and ALL. No execution on PostgreSQL is claimed; engine-specific examples remain scoped to18.

  2. Market practice

    SELECT: compound select statements (SQLite documentation) ↗ — SQLite project · SQLite documentation: compound select statements combine the results of several queries with UNION, UNION ALL, INTERSECT and EXCEPT (search excerpt, page not opened)

    Says EXCEPT returns the rows from the left query that the right query does not produce, and that both sides need the same number of columns. · Checked 2026-11-06

    SQLite rolling SELECT documentation opened6November2026; §§2–5 joins/grouping/bare columns/compound queries/order/limit. UNION ALL supported; INTERSECT ALL/EXCEPT ALL are not. Synthetic fixtures rechecked on3.53.1; historical3.40.1 observations retain their date/version.

  3. Market practice

    Caution with EXCEPT (SQLServerCentral) ↗ — SQLServerCentral · SQLServerCentral article: a caution about how EXCEPT behaves, so check what it does with repeated rows and NULL (search excerpt, page not opened)

    EXCEPT returns distinct rows only, so duplicates are hidden. · Checked 2026-10-19

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    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.

Learn this properly

START HERESQL for BAs: UNION, EXCEPT and EXISTSSometimes the question is which rows are in one list and not in another. Learn the set operators and EXISTS, and the traps that come with them.Opens at L0 Explain simply · about 15 min

Related briefs

Sam writes the note that users will read

A new version of Daily List is ready. Sam turns three work items into a short note for users: a label and a plain line for each change, one known issue, and a week of listening afterwards.

READ BRIEF