Software Testing / Learning brief
Tom tries to break four database rules
In simple terms / 01
What this means in plain language
Tom tests four rules on a copy of the tasks table and finds a raw error that the screen should hide.
Complete lesson / 02
Understand the full idea, step by step
Analogy: a locked gate with rules. A gate lets people in only if they have a ticket, a name and a valid date. Even if the front desk forgets, the gate still checks.
The gate protects the place whatever happens at the desk.
A constraint is a gate inside the database. Tom, the tester at Daily List, a to-do list app, tests the gate as well as the desk.
PLAIN WORDS · 1 in this section
- constraint
- a limit or rule that restricts what can be done
Evidence & review / 03
Evidence & review
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) checks. The people, the app and the 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
- Market practice
PostgreSQL documentation: 5.5 Constraints ↗ — PostgreSQL Global Development Group · PostgreSQL documentation: constraints include check, not-null, unique, primary key and foreign key constraints, and by default two null values are not considered equal in a unique constraint (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
PostgreSQL foreign key (Devart blog) ↗ — Devart · Devart blog: a foreign key links a column to a key in another table, so a row cannot point to something that does not exist (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. 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.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
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.