Entity relationship modelling – OCR A Level Computer Science lesson (H446)
Students learn to draw an entity relationship diagram with the correct degree on each relationship and resolve a many-to-many relationship.
Lesson 8 of 12 in unit 12.11 Compression, Encryption, Hashing and Databases, taught in Year 12, Summer 2. It answers one big question: How do we draw the links between the things we store?
By the end, students can draw an entity relationship diagram with the correct degree on each relationship and resolve a many-to-many relationship.
- The Build (the main task)
- Draw an entity relationship diagram for Shutterbox's members, photos, competitions and judges, showing the degree of each relationship and resolving any many-to-many relationship (6 marks).
- Support version
- The four entity boxes drawn, with sentence pairs ('One member uploads many photos; each photo is uploaded by one member') to turn into lines.
- Challenge
- Explain why a many-to-many relationship between Photo and Competition cannot be stored directly, and list the fields of the link table that replaces it.
- Real-world link
- Shutterbox adds competitions and judges: one photo can be entered in many competitions, and each competition has many photos.
- Key words
- Entity relationship diagram, Entity and Relationship, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “The crow's foot goes on the 'one' side of a relationship”; “A many-to-many relationship can be stored directly with foreign keys”.
- OCR H446 specification
- 1.3.2 (a).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Students can do it all on paper.
Also sold in the Compression, Encryption, Hashing and Databases unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Single-teacher licence: use and adapt it with your own classes
More for A Level Computer Science
See allStudents learn to compare lossy and lossless compression and justify which suits a given type of file.
Free sample lessonStudents learn to apply run length encoding and dictionary coding to data and calculate whether the result is smaller.
Students learn to describe symmetric and asymmetric encryption and state whose key encrypts and decrypts in each.
Written for the specifications named. Not endorsed by or affiliated with any exam board.