ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
2 marks · Entity-relationship diagrams and keys
An entity‑relationship diagram was created to design a database for a garage. Complete the entity‑relationship diagram below by identifying the primary and foreign keys. make finished regNumber costOfJob requires RepairJob jobName Car model jobNum mechanic regNumber
• PK in Car entity • PK and FK in Repair job entity Do not award a mark if additional attributes have been marked • Car – PK: regNumber • RepairJob – PK jobNum, FK regNumber