Master data modelling, SQL & real-world database design

A3 Databases — Build the Data Layer That Powers Every Application

From ER diagrams to production-ready SQL, this unit equips you with the database fluency top universities and employers demand. Learn to design, normalise, and query relational systems — and see how they fit into the IB Computer Science assessment model.

  • IBDP COMPUTER SCIENCE

This unit

Computer Science
Topic
1
Unit of Computer Science
4 / 8

Overview

A3 Databases

Students explore how data is structured, stored, and retrieved in relational systems. Topics include the relational model, ER diagramming, normalisation (1NF–3NF), SQL DDL/DML, referential integrity, transaction processing (ACID), and an introduction to NoSQL alternatives. HL students extend this with database connectivity, ORM concepts, and distributed database considerations.

Assessment appears in Paper 1 (short-answer and extended-response questions on theory and the pre-released case study) and Paper 2 (option-specific questions for HL). Internal Assessment solutions frequently require a working database backend, making this unit essential for both exam success and a high-scoring IA.

Key ideas

What A3 Databases covers

  1. 01

    Relational Foundations

    Understand tables, keys, relationships, and the mathematical basis of the relational model.

  2. 02

    Entity-Relationship Modelling

    Translate real-world scenarios into precise ER diagrams using crow's-foot notation.

  3. 03

    Normalisation to 3NF

    Eliminate redundancy and anomalies through systematic decomposition.

  4. 04

    SQL Mastery

    Write DDL to create schemas and DML to query, join, aggregate, and modify data.

  5. 05

    Transactions & Concurrency

    Apply ACID properties, locking, and recovery techniques for data integrity.

  6. 06

    Beyond Relational (HL)

    Explore NoSQL types, CAP theorem, and database connectivity via JDBC/ODBC/ORM.

Outcomes

What you will learn

  • Design a normalised schemaProduce a 3NF relational schema from a narrative specification, complete with ER diagram and data dictionary.
  • Write production-grade SQLConstruct complex queries using subqueries, multiple joins, window functions, and CTEs.
  • Enforce integrity programmaticallyImplement constraints, triggers, and stored procedures to safeguard data at the database layer.
  • Analyse transaction scenariosIdentify isolation levels, deadlock risks, and recovery strategies in concurrent environments.
  • Connect applications to databasesUse parameterised queries and connection pooling from Java/Python to prevent injection and optimise performance.
  • Evaluate NoSQL trade-offsJustify document, key-value, column-family, or graph stores against relational alternatives for given use cases.

FAQs

Common questions

Is this unit assessed differently for HL and SL?

Core theory (relational model, ER, normalisation, SQL, ACID) is examined for both levels. HL students additionally cover database integration, distributed databases, and NoSQL in Paper 1 and the HL-only Paper 3 case study.

How much SQL do I need to memorise?

The syllabus expects fluency in standard DDL/DML (CREATE, ALTER, SELECT, INSERT, UPDATE, DELETE, JOIN, GROUP BY, subqueries). You do not need vendor-specific extensions, but you must write syntactically correct standard SQL in exams.

Can I use a database in my Internal Assessment?

Absolutely. Most high-scoring IAs use SQLite, MySQL, or PostgreSQL as a persistent backend. This unit gives you the schema design and query skills to implement a robust data layer and document it in your IA write-up.

What prior knowledge is assumed?

Basic programming constructs (variables, loops, functions) and file I/O. No prior database experience is required — the unit builds from first principles.

Ready to master A3 Databases?

From ER diagrams to production-ready SQL, this unit equips you with the database fluency top universities and employers demand. Learn to design, normalise, and query relational systems — and see how they fit into the IB Computer Science assessment model.