Tables, rows, columns and types: what to read before you test
Before any query, see what the database holds.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a printed timetable board. Every column has a fixed heading, such as train, platform and time. Every line is one train. You cannot put a name in the time column. No two lines describe the same train.
Daily List is a to-do list app. The tasks table has a heading for the title, the status, the due date and the user. Tom reads that board before he checks a screen. (SYNTHETIC / TRAINING ONLY: Daily List and the people here are invented.).
What it is: A is a table. (Structured Query Language) is the language that reads it and changes it. A table is the grid. A row is one record, such as one task. A column is one kind of fact, and every row has the same columns. A row key is the column that is different in every row, so it names one row. A column type check asks whether a value is allowed there. The neighbour is a spreadsheet tab, where one column can hold a date in one cell and a word in the next. A database column is supposed to keep one type, but products do not all enforce that.
Why it matters: If Tom does not know what one row means, every later count answers the wrong question. A key can make a screen show one task and the database hold two.
PLAIN WORDS · 1 in this section
- spreadsheet
- a grid of rows and columns holding numbers or text
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 A printed timetable board with fixed headings.
- Read
- Types
- Key
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A line | A row |
| A heading | A column |
| The kind of entry a heading allows | A column type |
| A train number | A row key |
WHERE THIS PICTURE STOPS
- A board is printed, but a table changes all day.
- A board has a few lines, but a table can hold millions.
- A board is read by eye, but a table is checked by the database.
HOOK
Fixed headings, one line per train.
TELL A FRIEND
A board: fixed headings, one line per train.
OFTEN MIXED UP WITH Databases for testers. That topic shows how a database fits a system. This one shows what a tester reads inside it.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Market practice
PostgreSQL data types (Neon tutorial) ↗ — Neon · Neon tutorial: the data type of a column decides what values it can hold and which operations apply to it (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.
- Market practice
Tables (Appwrite PostgreSQL concepts) ↗ — Appwrite · Appwrite concepts page: columns are declared in advance, so every row has exactly the same set of columns (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.
- Implementation-specific
PostgreSQL documentation ↗ — The PostgreSQL Global Development Group · PostgreSQL 18 official manual, opened 2026-11-06: ddl-constraints, datatype and SQLite datatype3. Supports only PostgreSQL behavior; earlier execution evidence remains separately versioned.
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. - 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.
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.
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.