Worked solution from the Databases Paper 1 Theory Fundamentals booklet, Part 1 of 2.
Draw a line for each link, with the "many" end at the table that holds the foreign key:
CUSTOMER 1 to many PARTY [1]
PARTY 1 to many PHOTO_DATA [1]
CAMERA_DATA 1 to many PHOTO_DATA [1]
Write any three characteristics of 3NF:
No repeating groups of attributes (the data is atomic). [1]
No partial key dependencies. [1]
No non-key (transitive) dependencies. [1]
Tuple: a single row in a table. [1]
Example: ST23-56, BD987, 08:34, NIK-02 (any whole row from PHOTO_DATA). [1]
SELECT COUNT(PhotoID) FROM PHOTO_DATA WHERE CameraID LIKE 'CAN%';
COUNT [1]
PhotoID [1]
PHOTO_DATA [1]
'CAN%' (or 'CAN*') [1]
ALTER TABLE CAMERA_DATA
ADD NumberStored INTEGER,
LastUsed DATE;ALTER TABLE CAMERA_DATA [1]
ADD NumberStored INTEGER (a suitable name and type) [1]
LastUsed DATE as the second field, after a comma [1]
▶ 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.