ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions
3 marks · Entity-relationship modelling
A relational database is used to store data about the products that a shop sells. The database has the following tables. Product Category Courier Manufacturer productID name description price categoryName* manufacturerName* categoryName categoryDescrip currentDiscount courierID courierName courierAddress courierTelNo manufacturerName manufacturerAddress manufacturerTelNo courierID* Draw an entity‑relationship diagram to show the relationships that exist in this database. Your answer should show the entity names and cardinality. Attributes are not required on the diagram.
See entity-relationship diagram below. 1 mark for each relationship • Courier – Manufacturer (1:M) • Manufacturer – Product (1:M) • Product – Category (M:1)