Data quality
Learn the six ways data can be good or bad, how to measure them with simple queries, what to do about missing and odd values, and how to rule bad data out at the door.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: The phone book. A phone book is only useful if the names and numbers in it are right and up to date. If a number is wrong, you call a stranger. If a name is missing, you cannot find the person. If the same person is listed twice, you wonder which number to use.
The book is printed once, so its mistakes stay fixed. Data in an app keeps changing, so its mistakes grow.
is how well data is accurate, complete, consistent and current. Daily List, the to-do app, holds tasks and users. Sam, the , runs a simple count and finds 12 tasks with an empty title. Sam asks how they got in.
Some of the problems are a duplicate, which is the same real thing recorded twice, and a . Many are stopped at the door by a , a check that stops bad data going in. A title that must not be empty is one.
Bad data is not only untidy. A report built on it gives wrong answers, and a decision built on the report goes wrong too.
The phone book is a picture of the problem. Real data has more ways to go bad, and nobody sees the page.
PLAIN WORDS · 1 in this section
- untidy
- not neat or well arranged
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.
THE REAL JOB The picture helps a newcomer remember that data is only useful when it is right, complete, consistent and current, and that bad data grows over time.
- Pick the qualities
- Profile with counts
- Find the cause
- Stop it at the door
- Keep checking
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| A wrong number in the book | An inaccurate value |
| A name with no number | An incomplete record |
| The same person listed twice | A duplicate |
| A number that has changed since printing | Data that is out of date |
| A rule that every entry needs a name and a number | A validation rule |
WHERE THIS PICTURE STOPS
- A printed book is fixed, while data keeps changing.
- You can see a wrong number in a book. Bad data is often invisible until a report goes wrong.
- A book has one editor. Data enters from many screens, imports and systems.
HOOK
Right, whole, same, fresh, once, valid.
REMEMBER IT THIS WAY
A story beat: one picture-line that carries the order or the cause.
Sam counts the tasks with an empty title and asks how they got in. The fix belongs at the door, not just in the rows.
| In the trick | What it stands for |
|---|---|
| The count | A simple count finds tasks with an empty title |
| The door | A validation rule stops bad data going in |
Rows that got in before the rule existed still need cleaning.
TELL A FRIEND
is how fit data is for its use. Six qualities are accuracy, completeness, consistency, timeliness, uniqueness and validity, and validation rules stop bad data at the door.
OFTEN MIXED UP WITH Data mapping between systems. That topic matches fields between systems. This one asks whether the data that arrives is good.
PRACTISE AND KEEP
Sources for this topic — 7 sources
- Market practice
Data quality dimensions (International Business Machines documentation) ↗ — IBM · Data quality dimensions (International Business Machines documentation): accuracy, completeness, consistency, timeliness, uniqueness and validity as common dimensions of data quality (search excerpt, page not opened)
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.
- Market practice
Open Worldwide Application Security Project cheat sheet series: input validation ↗ — Open Worldwide Application Security Project (OWASP) · Input validation cheat sheet: check input on the server and prefer allow lists of good values (registry source; page not opened in this batch)
Search excerpt, page not opened: returned by WebSearch on 2026-10-18. The excerpts did not use the phrase as early as possible in the data flow, so this site does not quote it. It is guidance for software in general, not for payments.
V34 review, 6 November 2026: Read complete official repository sheet. Syntax, semantic business rules, server checks and safe handling of legitimate Unicode/punctuation have distinct roles.
- Market practice
PostgreSQL documentation ↗ — The PostgreSQL Global Development Group · PostgreSQL documentation, current manual: the SELECT reference and table expression chapters support the counting and comparing queries shown (search excerpt, page not opened)
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/postgresdocumentation 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. - Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, its tables and the people are invented. The six dimensions are a common convention that vendors and groups word a little differently, and not a single standard. The steps for missing values, odd values and clashes between two systems are common practice.
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.
- Market practice
Data vs Information vs Knowledge: What Are The Differences? ↗ — Tettra · Search excerpt only: data is raw, information is data in context.
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.
- Market practiceUK Government Data Quality Framework,3December2020,dimensions/user-needs tradeoffs
UK Government Data Quality Framework,3December2020,dimensions/user-needs tradeoffs ↗ — UK Government · UK Government Data Quality Framework,3December2020,dimensions/user-needs tradeoffs. Opened dimensions; validity is rule/range/format, accuracy matches reality. Suspicious candidates are not confirmed factual errors. No single dimension guarantees fitness.
Primary-source scope and access recorded in v12-ba-technical-audit-20261106.md. Advisory practice unless the cited instrument and its applicability establish a requirement.
- Market practicePostgreSQL 18 §9.2 Comparison Functions and Operators
PostgreSQL 18 §9.2 Comparison Functions and Operators ↗ — PostgreSQL Global Development Group · PostgreSQL 18 §9.2 Comparison Functions and Operators. IS DISTINCT FROM treats NULL as comparable; ordinary comparisons produce unknown when an input is NULL.
Primary text read6November2026; see domain audit for scope and limits.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.