FortyFive › Revision notes › IB Computer Science › IB Computer Science: A3 · Databases
IB Computer Science: A3 · Databases Relational databases, SQL, normalisation. 2 subtopics, 9 key terms.
In this topic: A3.1 · A3.2
A3.1 Relational databasesKey terms Table (relation) A set of records with the same fields. Primary key A field (or fields) that uniquely identifies each record. Foreign key A field linking to the primary key of another table. Normalization Organizing tables to reduce redundancy and avoid update anomalies. Transaction A unit of work that must be completed fully or not at all. Relationships: one-to-one, one-to-many (most common), many-to-many (resolved with a link table).
The full notes, worked example and check questions for this subtopic are in the app.
Exam tip: 'The key, the whole key and nothing but the key' is a quick way to remember 1NF–3NF.
A3.2 SQLKey terms SELECT Retrieves data from one or more tables. WHERE Filters rows using a condition. JOIN Combines rows from tables using matching keys. Aggregate function COUNT, SUM, AVG, MIN, MAX: calculate a value from many rows. GROUP BY groups rows before aggregation; HAVING filters groups (WHERE filters rows).
The full notes, worked example and check questions for this subtopic are in the app.
Exam tip: Read the question for every condition, then check each one appears in your WHERE clause.
← A2 · Networks · A4 · Machine learning →
← All IB Computer Science topics
All notes, examples and questions are written by FortyFive. FortyFive is an independent resource, not affiliated with or endorsed by the International Baccalaureate Organization. “IB” and “International Baccalaureate” are trademarks of the International Baccalaureate Organization.