Show understanding of and use the terminology associated with a relational database model.
Key Terminology
Database – an organised collection of data stored electronically.
Relational Database Management System (RDBMS) – software that creates, maintains and provides access to a relational database.
Table (Relation) – a set of rows (records) and columns (attributes) that stores data about a particular entity.
Row (Tuple, Record) – a single, complete set of related data items in a table.
Column (Attribute, Field) – a named data item that holds a particular type of information for all rows.
Primary Key – a column (or combination) that uniquely identifies each row in a table.
Foreign Key – a column that creates a link between two tables by referencing the primary key of another table.
Relationship – the logical connection between tables (one‑to‑one, one‑to‑many, many‑to‑many).
Normalization – the process of organising tables to reduce redundancy and improve integrity.
SQL (Structured Query Language) – the standard language used to query and manipulate relational databases.
Structure of a Relational Table
A relational table can be represented as a matrix where each cell holds an atomic value. The formal definition is:
\$\$
R = \{ (a1, a2, \dots , an) \mid ai \in D_i \}
\$\$
where \$R\$ is a relation, \$ai\$ are attribute values, and \$Di\$ are the domains of the attributes.
Suggested diagram: A simple ER diagram showing two tables (Students and Courses) linked by a foreign key.
Example: Student‑Course Database
The following tables illustrate a typical university database.
StudentID (PK)
Name
Email
1001
Alice Brown
alice@example.com
1002
Bob Smith
bob@example.com
EnrollmentID (PK)
StudentID (FK)
CourseCode
Semester
2001
1001
CS101
Fall 2025
2002
1002
CS101
Fall 2025
2003
1001
MA102
Fall 2025
Common Relationships
One‑to‑One (1:1) – each row in Table A relates to at most one row in Table B and vice‑versa.
One‑to‑Many (1:N) – a single row in Table A can be related to many rows in Table B, but each row in B relates to only one row in A. The foreign key is placed in the “many” side.
Many‑to‑Many (M:N) – rows in Table A can relate to multiple rows in Table B and vice‑versa. Implemented using a junction (associative) table that contains two foreign keys.
Normalization Overview
Normalization is typically described in normal forms. The first three are most relevant for A‑Level:
First Normal Form (1NF): All attribute values are atomic; no repeating groups.
Second Normal Form (2NF): In 1NF and every non‑key attribute is fully functionally dependent on the whole primary key.
Third Normal Form (3NF): In 2NF and no transitive dependencies exist (non‑key attributes depend only on the primary key).
Sample SQL Statements
Below are examples of SQL commands that use the terminology introduced.