One-to-one and many-to-many relationships
A table that splits a many-to-many relationship into two one-to-many links by holding two foreign keys, such as Enrolment with studentId and subjectId.
Understanding One-to-one and many-to-many relationships in ACARA Digital Technologies Years 9–10
What it does: Crow's feet on both ends of the line show many on both sides, which is a many-to-many relationship. Enrolment sits in the middle. Each of Student and Subject has a one-to-many link to it, replacing the many-to-many line. Each person has at most one passport and each passport belongs to exactly one person, so it is one-to-one. A junction table splits the many-to-many relationship into two one-to-many links.
Common mistakes: A many-to-many link cannot be stored as a list in one field. Each enrolment row holds one subjectId (an INT foreign key), so the line should be ' subjectId INT'. The comma between the two selected fields is missing, so the query has a syntax error. It should be 'SELECT Student.firstName,'.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 433–451) and word search (Modules 413–451).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
junction tableFill in the Blanks
Spot the Error
Student with a class code? Join your class →