Entity relationship diagram: entities and relationship lines
An entity relationship diagram draws each entity as a labelled box and each relationship as a line joining two boxes. Boxes list attributes, with PK and FK marked.
Understanding Entity relationship diagram: entities and relationship lines in ACARA Digital Technologies Years 9–10
What it does: The line between the two boxes shows that the entities are related. Here, students are linked to the orders they place. Each entity (like Student or Product) is drawn as a labelled box. Lines are used for relationships, not entities. Attributes such as firstName and points are listed inside the box of the entity they describe. The line is for labelling the relationship. PK means primary key, the attribute that uniquely identifies each record. FK marks a foreign key. studentId in Orders points to the primary key of another table, so it is a foreign key and is marked FK. The PK of Orders would be orderId.
Common mistakes: FK marks a field that links to another table's primary key. firstName is an ordinary attribute, so it needs no mark. Only houseId should be marked FK. One student can have many results, so the 1 goes on the Student end and the * on the Result end. The line should be Student 1--* Result : sits.
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
ERDFill in the Blanks
Spot the Error
Student with a class code? Join your class →