9618/12/O/N/23 question 2: worked solution (October/November 2023, paper 12)
Show as plain textHide plain text
Cambridge AS Level Computer Science 9618 · 8.1 Database Concepts Worked solution from the Databases Paper 1 Theory Fundamentals booklet, Part 1 of 2. Q8 9618/12/O/N/23 original Q2 Structured · 11 marks Worked solution (a) Write a short definition for each: Entity : an object about which data can be stored [1] Primary key : the unique field (or fields) that identifies each record [1] Referential integrity : every foreign key has a matching primary key, so data that does not exist cannot be referenced [1] (b) Describe other security methods. Write the method, then what it does. Four points score (two methods, each with its description); no more than 2 marks if there are no descriptions: Backup and recovery procedures [1] ...copies of the database are taken automatically and stored off site, so the data can be recovered if it is lost [1] Access rights [1] ...different users get different permissions to different tables, for example read only or full access [1] Views ...different users see different parts of the database, only what they need to see Other accepted methods (these can replace the two above): views (different users see different parts of the database, only what they need to see), record and table locking (stops simultaneous access, so updates are not lost) and encryption (data is turned into ciphertext, so it cannot be understood without a decryption key). (c) Explain the changes: Identify the repeating groups of attributes [1] ...these are Subject and SubjectCode , which hold several values in one cell [1] Make sure each field is atomic , for example split StudentName into FirstName and LastName [1] Identify a primary key for the table [1] KEY IDEA 1NF means atomic fields, no repeating groups and a primary key. TOTAL 11 marks Official mark scheme VIDEO ▶ Starts at Q2 (10:26) Starts at Q2 (10:26) · by Pseudocode Pro. Tap the picture to open it on YouTube.