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 Science HLTopic 3.1
Unit 3 · Databases · Topic 3.1

IB Computer Science HL — Database fundamentals

Database fundamentals

Higher Level students should use this topic hub as a map: start with the shared sub-topics, then follow the HL-only extensions and exam-skill links where this topic asks for deeper analysis.

Exam technique guidePractice questions

Key concepts in Database fundamentals

Key Idea: A relational database stores data in linked tables so that every fact is held once. The database itself then enforces the rules, rather than trusting every program that writes to it to remember them.

Paper 1

  • Definitions, keys, normal forms.
  • Identify the dependency; state the form broken.

Paper 2

  • A scenario to design or normalise.
  • Construct an ERD, tables, or SQL.

Both

  • Name the dependency, not just the normal form.
  • Every design choice needs a justification.

🗝️ The vocabulary

TermMeaning
RecordOne row — all the data about one entity
FieldOne column — the same attribute across every record
Primary keyUniquely identifies each record; never duplicated, never empty
Foreign keyHolds the primary key value of a record in another table
Composite keyA primary key made of two or more fields together
Names are not unique — two students called Anna Novak will enrol eventually. Names also change, and a changing key forces every record referring to it to be updated too. A generated identifier is unique, stable and short to compare.

🔗 Relationships

CardinalityHow it is implemented
One-to-oneOften a sign the two tables should be combined
One-to-manyForeign key goes in the table on the MANY side
Many-to-manyNeeds a third link table, one row per pairing, composite key
Important: A foreign key column holds one value. A Student row could record only one subject, and a Subject row only one student — neither side can hold many. Repeating columns fixes an arbitrary limit. The link table turns one many-to-many into two one-to-many relationships.

Referential integrity

  • A foreign key value must already exist as a primary key in the referenced table
  • A referenced record cannot be deleted while rows still point at it
  • Without it, deleting a book leaves loan records pointing at nothing
  • Queries then silently omit those rows — the data is wrong with no error reported

📝 Exam-style questions

IB-style questionConstruct[4 marks]

A driving school records instructors, learners, and the lessons between them. Each lesson has one instructor, one learner, a date and a duration. Construct the tables needed, naming the keys.

🔒 Model answer plan

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

Claim your free topic →
IB-style questionExplain[3 marks]

A library deletes a member who still has two loans recorded. Explain what referential integrity does, and what would happen without it.

🔒 Model answer plan

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

Claim your free topic →

✅ Quick check

Cover the answers.

Where does the foreign key go in a one-to-many relationship? In the table on the MANY side — each of its rows relates to exactly one row on the other side.

Why not use a person's name as a primary key? Names are not unique and they change — and a changing key breaks every reference to it.

What does a link table need as its primary key? Usually the two foreign keys together — a composite key, which also prevents duplicate pairings.

Where does a loan's date belong? On the loan, not the book or the member — it is a fact about that particular borrowing.

What is an orphaned record? A row whose foreign key points at a record that no longer exists.


Exam tips

  • Ask which key a field depends on — that single question places every field correctly.
  • One-to-many: foreign key on the MANY side. Many-to-many: a link table.
  • A fact about the pairing itself lives on the link table.
  • Referential integrity is ENFORCED by the database, not remembered by the programmer.
  • Say what goes wrong without a constraint — the consequence is where the marks are.

What you'll learn in Topic 3.1

  • 3.1.1 Relational databases
Suggested study order: Read the notes for each sub-topic below → test yourself with flashcards → attempt practice questions → review exam technique.

Study resources — 3.1 Database fundamentals

3.1.1

Relational databases

Notes

Ready to study Database fundamentals?

Get expert practice questions with instant AI feedback, and a study planner tailored to your IB Computer Science HL exam date.

Start studying free

Topic 3.1 Database fundamentals forms a core part of Unit 3: Databases in IB Computer Science HL. Mastering these concepts will strengthen your understanding of connected topics across the syllabus and prepare you for exam questions that require analysis, evaluation, and real-world application.

Previous topic
2.4 Network security
Next topic
3.2 Database design
All Computer Science HL topics
Exam technique

Ready to practice?

Get AI-graded practice questions, mock exams, flashcards, and a personalised study plan — all aligned to your IB syllabus.

Start Studying Free

No credit card required · No time limit