aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer ScienceTopic 3.1Relational databases
Back to Computer Science Topics
3.1.14 min read

Relational databases

IB Computer Science • Unit 3

IB exam ready

Study like the top scorers do

Access a smart study planner, AI tutor, and exam vault — everything you need to hit your target grade.

Start Free

Contents

  • Tables that know about each other
  • The features
  • What you gain and what you give up
  • Exam-style question
The big idea: A relational database stores data in tables, and links those tables together.

Each fact is stored once, in the table it belongs to, and other tables point at it rather than copying it.
Why not one big table: Put students and their clubs in one table and a teacher's room gets written out on every row.

Change the room and you must find every copy. Miss one and the database now disagrees with itself.

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime

Tables and relationships

  • A table holds one kind of thing: students, clubs, teachers
  • Each row is one of those things; each column is one property
  • A relationship links a row in one table to rows in another

Keys that identify

  • Primary key — uniquely identifies each row in its table
  • Composite key — two or more columns used together as the primary key
  • Needed when no single column is unique on its own

Keys that link

  • Foreign key — a column holding a primary key from another table
  • That is how the link is physically made
  • The database refuses a foreign key pointing at a row that does not exist
Primary against foreign, in one line: A primary key says which row this is. A foreign key says which row in the other table this belongs to.

One identifies; the other points.

How relationships are drawn, and how each is built with keys. Step through all four.

Interactive diagram

Explore the labelled diagram, charts and maps for this topic in full study mode.

Claim your free topic

Never wonder what to study next

Get a personalized daily plan based on your exam date, progress, and weak areas. We'll tell you exactly what to review each day.

Try Free Study PlanYour first topic is free to keep • No credit card required

Benefits

  • Reduced duplication — each fact stored once, so less storage and fewer contradictions
  • Data integrity — the database enforces the rules, such as refusing an invalid foreign key
  • Consistency — change a fact in one place and everyone sees the change
  • Concurrency control — many people can work at once without corrupting each other's changes
  • Security — access can be granted per table or per column

Limitations

  • Rigid schema — the structure must be decided up front and is awkward to change
  • Design complexity — getting the tables right takes real skill
  • Unstructured data — documents, images and free text fit badly into rows and columns
  • Hierarchical data — deeply nested structures need awkward self-joins
  • Scalability — very large data is hard to spread across many machines
Why the rigid schema is the usual complaint: Adding a column to a table with millions of rows is slow and disruptive, and every program reading that table may need changing.

That inflexibility is the price of the guarantees on the other side.

How this is tested — you must name a feature or benefit AND say what it prevents or enables. It comes up two ways:

Paper 1 Section A

  • Explain features, benefits or limitations, 3-5 marks
  • Distinguish primary, foreign and composite keys
  • Say why a relational database suits a scenario

Paper 1 Section B — case study

  • Evaluate the case study's data storage
  • Say whether relational is the right choice for them
The classic trap: Listing benefits as single words — "integrity, consistency, security". Each needs a clause saying what it prevents: an invalid foreign key refused, one update seen by everyone.
IB-style questionExplain[4 marks]

A school currently keeps student and club information in one large spreadsheet. Explain two benefits of moving to a relational database.

Model answer plan

See the mark-by-mark plan — for / against / judgement, with marking guidance — in study mode.

Claim your free topic

Try an IB Exam Question — Free AI Feedback

Test yourself on Relational databases. Write your answer and get instant AI feedback — just like a real IB examiner.

the type of relationship between Students and Subjects when each student takes several subjects and each subject is taken by several students. [1 mark]

Related Computer Science Topics

Continue learning with these related topics from the same unit:

3.2.1Database schemas
3.2.2ERDs
3.2.3Data types
3.2.4Building tables
View all Computer Science topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Computer Science

Previous
2.4.4Encryption and certificates
Next
Database schemas3.2.1

22 questions to test your understanding

Reading is just the start. Students who tested themselves scored 82% on average — try IB-style questions with AI feedback.

Start FreeView All Computer Science Topics