Database terminology
Tables of records and fields, with keys to identify and link.
Cambridge tests these terms repeatedly — get them right.
Database. A structured, organised collection of related data.
DBMS (Database Management System). The software that creates, manages and queries databases. Examples: MySQL, PostgreSQL, SQL Server, SQLite, MongoDB.
Table. A 2D structure: rows and columns. Each table holds related data — a Students table holds rows of student data; a Books table holds rows of book data.
Record. A ROW in a table — all the fields about ONE entity. One record = one student.
Field. A COLUMN in a table — one specific attribute. The Name field has every student's name; the Year field has every student's year.
Primary key (PK). A field (or combination) that UNIQUELY identifies each record. No duplicates; no nulls. Examples: StudentID, ProductCode, ISBN. Every relational table has one.
Foreign key (FK). A field in one table that REFERENCES another table's primary key, linking the two. Marks.StudentID is a foreign key to Students.StudentID.
| Term | Memorable shape |
|---|---|
| Table | Grid |
| Record | ROW (entity) |
| Field | COLUMN (attribute) |
| Primary key | Unique row identifier |
| Foreign key | Cross-table link |
Cambridge tip. Mark scheme expects students to know all five terms. Confusing record/field is the most common error.
- Table = grid.
- Record = ROW. Field = COLUMN.
- Primary key = unique. Foreign key = link.