TOPIC 03/2815 MINNOT STARTED

Reading an entity-relationship diagram

An ERD shows the tables of a database and how they link. Learn to read one to plan tests and write better data queries.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a map of who knows whom. A map of a school shows people, clubs and lines between them. One teacher leads many students. A student may join many clubs. The map lets you ask a good question before you meet everyone.

Daily List is a to-do list app. Its data sits in a database. Tom, the tester, reads a map of the tables before he writes a test.

What it is: An ERD (entity-relationship diagram) shows entities and relationships. A logical or physical relational ERD can also show tables and keys; a conceptual ERD need not yet name implementation tables. (Structured Query Language) is the language you will use to ask those tables a question. A table is a grid, a row is one item, and a column is one fact about that item. The picture is not the database, and it is not a diagram of the program code. The database holds the rows. The ERD only describes them.

Why it matters: Without the map, Tom tests one screen at a time and misses the links. He does not think to test a list with no tasks, or a task with two tags. A short look at the ERD shows those cases before any query is written.

The school map is easy to read at a glance. An ERD uses special line ends, and those ends have to be learned. The next level teaches them.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Reading a map of who knows whom to plan questions.

  1. Things
  2. Links
  3. Counts
Map of people

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The peopleEntities
The linesRelationships
One to manyA fork
The club listA middle table

WHERE THIS PICTURE STOPS

  • A map shows today, but data changes.
  • A map is drawn once, but an ERD (entity relationship diagram) can be out of date.
  • People move, but tables are fixed.

HOOK

Things, links, counts.

TELL A FRIEND

A map of who knows whom: things, links and counts.

OFTEN MIXED UP WITH Databases for testers. That topic explains tables and keys. This one reads the diagram that shows how they link.

PRACTISE AND KEEP

Sources for this topic — 4 sources
  1. Market practice

    Entity-relationship diagram (ERD) guide (Redgate blog) ↗ — Redgate · Redgate blog: an ERD shows entities, attributes and relationships (search excerpt, page not opened)

    Vendor beginner guide. An ERD shows entities, attributes and relationships. · Checked 2026-10-18

    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.

  2. Implementation-specific

    PostgreSQL documentation ↗ — The PostgreSQL Global Development Group · PostgreSQL 18 official manual, opened 2026-11-06: ddl-constraints plus Painter-Wakefield, A Practical Introduction to Databases §2.4.1.1. Supports only PostgreSQL behavior; earlier execution evidence remains separately versioned.

    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.

  3. Implementation-specific

    SQLite official documentation — constraints, types and transactions ↗ — SQLite · SQLite rolling official documentation, opened 2026-11-06: foreignkeys.html, datatype3.html, lang_createtable.html, lang_transaction.html, isolation.html, cli.html, series.html and lang_createtrigger.html as relevant. Historical SQLite 3.40.1 results remain distinct from in-memory audit witnesses on 3.53.1.

    Implementation-specific SQLite documentation, not a universal SQL standard. Includes foreign-key enforcement, type affinity, CREATE TABLE/TRIGGER, explicit/implicit transaction behavior, isolation, CLI and series extension references. · Checked 2026-11-06

    Relevant primary pages opened 6 November2026; rolling documentation and CLI examples (3.54.0) are distinct from historical lesson runs3.40.1 and audit witnesses3.53.1. No file/connected database audit execution.

  4. Market practice

    Entity-relationship diagram alternatives and variations (Runestone Academy, Practical Database Design) ↗ — Runestone Academy · Christopher Painter-Wakefield, A Practical Introduction to Databases, published0.1.2 (2023-08-26), §2.4.1.1 crow’s-foot minimum/maximum marks; chapter opened via normal web on2026-11-06. Actual A–B SVG inspected from author repository commit fcb78d785594f418f9df749e94f5e296c8ab1b4e (2026-07-03), CC BY-SA4.0. Published asset fetch403, so no published-byte identity claim.

    Teaching text. Compares Chen notation, where each kind of symbol has its own shape, with crow's foot notation, where the line ends show how many. Search excerpt only. · Checked 2026-10-18

    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.

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.