ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
14 marks · Entity-relationship diagrams and keys
Complete the entity relationship diagram below by: • drawing any missing attributes from either entity • drawing the relationship between the entities • naming the relationship between the entities • identifying any additional key fields. forename Staff dateOfBirth salary branchID street Shop town As well as an entity relationship diagram, a data dictionary is created at the design stage. State the purpose of a data dictionary. The attribute ‘town’ will store the place where each shop is located. A presence check has been noted in the data dictionary for this field. State one other type of validation that should be included in the data dictionary for this attribute. Sydney Bakery also maintains a website. Part of the HTML code for the home page is shown below. . . . <style> .mainHeading {text-align:right} h2 {text-align:center} div {text-align:left} </style> </head> <body> <div class="mainHeading"> <h1>Sydney Bakery</h1> <h2>Baking Since 1935</h2> </div> <div> <p>Started over 70 years ago, Sydney’s now employs over 100 staff. <ol><li><a href="#Option1">Sydney’s Family</a></li> <li><a href="#Option2">Our Stores</a></li> <li><a href="#Option3">Our Products</a></li></ol> </p> <p id="Option1">The founders of our bakery were David and Davina Sydney.</p> </div> . . . Explain the purpose of href="#Option1" in the code above. Draw how the home page will look when viewed in a browser. Some of the content has already been added. Started over 70 years ago, Sydney’s now employs over 100 staff. The founders of our bakery were David and Davina Sydney. Sydney Bakery owns three high street shops in Dundee, Falkirk and Perth. The bakery wishes to design and implement a database to store the information shown below. Examples of Shop Information Cards Currently typed up by staff and kept as printed copies. Examples of Staff Information Cards Currently hand written by each shop manager and kept for reference.
One mark each for: • Relationship: one-to-many • Name of Relationship: employs (or similar) • Shop attribute: telephoneNumber • FK noted: branchID • PK noted: employeeCode • Staff attributes: surname, position, employeeCode, branchID Plan of how database is to be implemented. Restricted Choice Accept a description of restricted choice. The link jumps to further down the same page (to the text about Sydney’s family). Links to option1 ID One mark each for: • ‘Sydney Bakers’ aligned top-right • ‘Baking Since 1935’ centred on next line • each list item on a new line • numbered list • list items underlined (links) Baking Since 1935