9618/11/M/J/21 question 7: worked solution (May/June 2021, paper 11)

Show as 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. Q1 9618/11/M/J/21 original Q7 Structured · 11 marks Worked solution (a) Say why a relational database is better than a flat file. Any three of these points: A file-based approach has more data redundancy , because the same data is stored many times. [1] A file-based approach has program-data dependence , because a change to the data structure means the programs must be rewritten. [1] A file-based approach has more data inconsistency (worse integrity), because duplicated data may be updated in one place and not in the others. [1] Other accepted points: complex searches and queries are hard because a new program is needed each time; flat files give poor privacy because user views are hard to set up. (b)(i) Write one example of each relationship: One-to-one : customer to payment details (or customer to login details) [1] One-to-many : customer to order [1] Many-to-many : order to product (or customer to product) [1] (b)(ii) Tick many-to-many . It needs a linking table, so it cannot be implemented directly. [1] (b)(iii) CREATE DATABASE SHOPORDERS; Correct statement [1] (c) Write any three items stored in a data dictionary : Table name [1] Field name (attribute) [1] Data type [1] Other accepted items: type of validation, primary key, foreign key, relationships. KEY IDEA A relational database cuts repeated data and keeps data consistent, and a data dictionary holds the facts about the database's structure. TOTAL 11 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.