SQL (Structured Query Language) for BAs: CRUD (create, read, update, delete), from a requirement to four statements
Every screen action is create, read, update or delete. Learn how each one becomes a SQL (Structured Query Language) statement so you can write and check requirements.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a library card. A library adds a card for a new book. It looks a card up, corrects a card, and removes the card for a lost book. Every job is one of those four. Each job has a rule about who may do it.
Daily List is a made-up to-do app (SYNTHETIC / TRAINING ONLY). Sam, the , writes the four jobs for a task before Leo, the developer, builds the screen.
What it is: (Structured Query Language) is a language for questions and for changes. A table holds rows, and each column is one fact. The is four jobs: create, read, update and delete. The four statements are INSERT, SELECT, UPDATE and DELETE. A CRUD requirement says who may do each job, and what the row must hold. UPDATE and DELETE need a WHERE. Without it they touch every row. A SELECT only reads, which is the neighbour people forget when they say "just change it".
Why it matters: An update with no WHERE marked all ten tasks done in one test. A rollback put the old statuses back. On a live database that rollback may already be too late. Sam makes Tom, the tester, run the matching SELECT first.
The card picture leaves out errors, limits and what should happen to linked rows.
PLAIN WORDS · 1 in this section
- rollback
- undoing a change to return to the earlier state
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 Keeping a library card catalogue.
- Create
- Read
- Update
- Delete
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| A new card | INSERT |
| Looking up a card | SELECT |
| Correcting a card | UPDATE |
| Removing a card | DELETE |
WHERE THIS PICTURE STOPS
- A catalogue has one keeper, but systems have many users.
- A card is removed, but a system may keep a copy.
- A card is simple, but data is linked.
HOOK
Four jobs, four rules.
TELL A FRIEND
A catalogue: four jobs, each with rules.
OFTEN MIXED UP WITH SQL for BAs: SELECT and WHERE. That topic reads data. This one adds the three statements that change it.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Market practice
SELECT command reference (PostgreSQL documentation) ↗ — PostgreSQL · PostgreSQL 18, SELECT: WHERE/HAVING/output aliases, functional dependence, NULL ordering and LIMIT; publisher page opened6November 2026. Dialect scope explicit.
PostgreSQL18 publisher documentation opened on6November2026: SELECT: WHERE/HAVING/output aliases, functional dependence, NULL ordering and LIMIT. No execution on PostgreSQL is claimed; engine-specific examples remain scoped to18.
- Market practice
Transactions (PostgreSQL tutorial) ↗ — PostgreSQL Global Development Group · PostgreSQL 18, §3.4 explicit transactions and savepoints; publisher page opened6November 2026. Dialect scope explicit.
PostgreSQL18 publisher documentation opened on6November2026: §3.4 explicit transactions and savepoints. No execution on PostgreSQL is claimed; engine-specific examples remain scoped to18.
- Market practice
SQLite: transactions ↗ — SQLite project · SQLite: transactions; Explicit versus implicit transactions and error-handling scope. Publisher page opened6November 2026.
Publisher documentation opened on6November2026. Engine/version scope is explicit; other database implementations may differ. Teaching queries are synthetic, not a required publisher template.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List people, data and exercises are invented for teaching. Query results belong to the declared fixture and database version. Authorization, business identity, time bounds and unknown-value policy must be agreed in context; no universal mandatory query template is implied.
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.
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.