Business Analysis / Learning brief

Sam finds users with no task three ways

What this means in plain language

Sam asks for users with no task in three forms and finds that NOT IN returns nothing.

Understand the full idea, step by step

Analogy: a coat check. The attendant wants every coat with no ticket. One way is to walk the racks and check each. Another is to hold the stub box and ask if a ticket matches.

If one stub in the box is torn and unreadable, a lazy rule such as no stub matches can mislead.

PLAIN WORDS · 3 in this section
stub
a simple fake part that gives fixed answers
unreadable
too unclear to make out
mislead
give someone a wrong idea

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.

Anti-joins and the not-in trap. 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
  1. Market practice

    Subquery Expressions (PostgreSQL documentation) ↗ — PostgreSQL Global Development Group · PostgreSQL reference: NOT IN returns null, not true, when the subquery contains a null and no equal value is found, and EXISTS depends only on whether the subquery returns any row (search excerpt, page not opened)

    §9.24 EXISTS/IN/NOT IN NULL semantics. PostgreSQL18 implementation, not a universal SQL mandate. · Checked 2026-11-06

    PostgreSQL18 publisher documentation opened on6November2026: §9.24 EXISTS/IN/NOT IN NULL semantics. No execution on PostgreSQL is claimed; engine-specific examples remain scoped to18.

  2. Market practice

    Table expressions and joined tables (PostgreSQL documentation) ↗ — PostgreSQL · PostgreSQL reference: a left join fills the right side with nulls when nothing matches, which a test for null can then pick out (search excerpt, page not opened)

    §7.2 joined tables, grouping and grouping sets. PostgreSQL18 implementation, not a universal SQL mandate. · Checked 2026-11-06

    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.

  3. 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 HEREAnti-joins: finding what has no matchWhich users have no task? Which tasks have no owner? Learn three ways to ask, and why one of them, NOT IN, can quietly return nothing when a null is present.Opens at L0 Explain simply · about 15 min

Related briefs