Business Analysis / Learning brief

The question that found nothing

What this means in plain language

Sam asks the database for tasks with no due date and gets nothing back. Leo shows why, and Sam learns that a missing value is not zero. A short story about null and a careful question.

Understand the full idea, step by step

A query can run without an error and still give the wrong answer.

This brief follows an analyst whose first question to a database returns nothing, even though Nina knows there are tasks with no date.

What matters is checking the answer against what you expect, and knowing what a missing value does.

Evidence & review

REVIEWED 2026-10-18

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.

SELECT, WHERE and null as taught in this academy. The table, the fault and the people are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. The query is for PostgreSQL, and other products differ in small ways.

Sources for this brief — 3 sources
  1. Market practice

    PostgreSQL documentation ↗ — The PostgreSQL Global Development Group · PostgreSQL documentation, current manual: the tutorial on querying a table shows SELECT with a WHERE condition combined with AND, OR and NOT; the SELECT reference says a row that does not satisfy the condition is left out, and a null result leaves the row out too (search excerpt, page not opened)

    A free, precise, section-numbered description of the SQL a payments practitioner actually writes. Join types and what happens to unmatched rows, GROUP BY and HAVING against WHERE, window functions and the de-duplication and running-total idioms built on them. Transaction isolation levels and the anomalies each permits, index use, and null three-valued logic.

    Used here for the data-and-SQL questions a Payment Operations Analyst, a Production Support Analyst and a Sanctions Screening Analyst are asked. · Checked 2026-08-18

    An implementation, not the standard — which is the point. ISO/IEC 9075-2 is paywalled, and this documents the same constructs in text anybody can open. Its isolation-level chapter attributes to the standard explicitly, so it can carry a standard-level claim as long as the citation says which document it is quoting.

    Cited as market practice rather than an official standard by kind: an engine's manual is authoritative about that engine and is not the obligation. Where a question turns on behaviour PostgreSQL chose rather than behaviour SQL requires, the answer has to say so.

    One correction carried here because it circulates widely: the sentence "The fundamental difference between WHERE and HAVING…", quoted all over the internet as PostgreSQL documentation, is not in the current documentation. It was searched for in the source tree and is not there.

    Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.

    Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.

    Read from the postgres/postgres documentation source tree (doc/src/sgml), which the project itself maintains and which carries the section ids the published URLs are derived from — so a cited section id can be checked against the rendered page.

  2. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

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

    What this simplifies: Daily List, its tables and the people are invented. The queries were written for PostgreSQL, and other products differ in small ways, such as how nulls sort and how dates are written. The safe habits are common practice with no single source.

    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.

  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 HERESQL for BAs: SELECT and WHEREAsk a database questions with SELECT and WHERE. Learn conditions, null, sorting, limits, the second-highest trick, the five kinds of SQL statement and safe habits for analysts.Opens at L0 Explain simply · about 16 min

Related briefs

The question that hid the answer

Sam asks Lily, "Would you like a reminder?" She says yes, and Sam learns nothing. Then Sam asks about the last task Lily missed and hears the real story. See why the way you ask decides what you learn.

READ BRIEF

The meeting that changed nothing

Daily List holds its meetings but the plan never changes. Sam names three habits that look helpful and do harm, and the team tries one small change. A small story about walks, marathons and honest labels.

READ BRIEF

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