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.2ERDs
Back to Computer Science Topics
3.2.24 min read

ERDs

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

  • Drawing the design before building it
  • Cardinality and modality
  • Building the ERD
  • Exam-style question
The big idea: An ERD shows the things a database stores and how they relate.

Each box is an entity — one kind of thing, which will become a table. Each line is a relationship between two of them.
Why draw it at all: A mistake in an ERD costs a pencil line. The same mistake found after the database is full of data costs a rebuild.

It is also the one document a non-technical person can check and correct.

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

Each relationship type, read both ways, with how it is built in tables. Step through all four.

Interactive diagram

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

Claim your free topic

Cardinality — how many

  • One to one — each side has at most one of the other
  • One to many — one on one side, several on the other
  • Many to many — several on both sides
  • Drawn with a bar for one and a crow's foot for many

Modality — is it compulsory

  • Mandatory — there must be at least one
  • Optional — there may be none
  • Drawn with a second bar for mandatory, a circle for optional
  • A student may have no club yet: optional on the club side
Read every relationship twice: Once each way. "A teacher teaches many classes" and "a class is taught by one teacher".

Both sentences together give you the cardinality. Get into the habit and you will never draw the crow's foot on the wrong end.

Practice with real exam questions

Answer exam-style questions and get AI feedback that shows you exactly what examiners want to see in a full-marks response.

Try Practice FreeYour first topic is free to keep • No credit card required
1

1 — Find the entities

2

2 — Find the relationships

3

3 — Decide cardinality both ways

4

4 — Resolve any many-to-many

The linking entity usually has a name: It is rarely just glue. Member-to-Book becomes Loan, which also holds the date borrowed and the date due.

If you cannot think of a name for it, you have probably missed data that belongs on it.

How this is tested — you must draw the right cardinality on the right end, and resolve any many-to-many. It comes up two ways:

Paper 1 Section A

  • Construct an ERD from a scenario, 4-6 marks
  • State the cardinality of a described relationship
  • Explain what a linking table is for

Paper 1 Section B — case study

  • Draw the ERD for the case study's data
  • Explain why a particular relationship takes the form it does
The classic trap: Leaving a many-to-many undrawn. A relational database cannot store it — there is nowhere to put a foreign key holding several values — so the linking entity is part of the answer, not an optional extra.
IB-style questionConstruct[5 marks]

A hospital records which doctors treat which patients, and each patient is assigned one ward. Construct an ERD for this, explaining your cardinalities.

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 ERDs. Write your answer and get instant AI feedback — just like a real IB examiner.

the term entity in database design. [1 mark]

Related Computer Science Topics

Continue learning with these related topics from the same unit:

3.1.1Relational databases
3.2.1Database schemas
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
3.2.1Database schemas
Next
Data types3.2.3

20 exam-style questions ready for you

Students who practice on Aimnova improve their scores by 15% on average. Get instant feedback that shows exactly how to improve your answers.

Practice Now — FreeView All Computer Science Topics