Worked solution from the Databases Paper 1 Theory Fundamentals booklet, Part 1 of 2.
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.
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]
Tick many-to-many. It needs a linking table, so it cannot be implemented directly. [1]
CREATE DATABASE SHOPORDERS;
Correct statement [1]
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.
▶ Whole paper
Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.