ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions
3 marks · Keys and the data dictionary
Explain why a compound key is required for the Hire table. The data dictionary for a table includes the field name. State two other items that would be specified in a data dictionary. BorrowABike is a company that hires bikes to customers for one day. They have a relational database with three tables as shown below. Bikes Members Hire MemberID BikeID MemberID* Name Colour BikeID* Address Wheelsize HireDate Phone Cost
No single field provides a unique value OR All three fields required to provide a unique value “unique” on its own is insufficient • Field/data type • Keys / PK/FK • Validation • Field length/size • Format • Required • Unique Any two bullet points, 1 mark each Indication of PK/FK together
Previous question: Higher Computing Science 2016 Question 6 (CfE)
Next question: Higher Computing Science 2016 Question 8 (CfE)