Worked solution from the Databases Paper 1 Theory Fundamentals booklet, Part 2 of 2.
| Task | 0NF to 1NF | 1NF to 2NF | 2NF to 3NF |
|---|---|---|---|
| Remove any partial key dependencies | ✓ | ||
| Remove any repeating groups of attributes | ✓ | ||
| Remove any non-key dependencies | ✓ |
One tick in the correct place [1]
All three ticks correct [1]
Draw a line between each pair of linked tables. Each has a one-to-many link, with the "many" end at the table that holds the foreign key.
CUSTOMER 1 to many PURCHASE [1]
PURCHASE 1 to many PURCHASE_ITEM [1]
PLANT 1 to many PURCHASE_ITEM [1]
The data dictionary stores metadata (data about the database). [1]
Write any two items it contains: table names, field (attribute) names, data types, validation rules, primary keys or foreign keys, relationships. [2]
SELECT SUM(Quantity) FROM PURCHASE_ITEM WHERE PurchaseID = "3011A";
Quantity in SUM [1]
PURCHASE_ITEM [1]
PurchaseID [1]
"3011A" [1]
ALTER TABLE PURCHASE ADD OrderDate DATE;
ALTER TABLE PURCHASE [1]
ADD with a field name such as OrderDate [1]
A suitable data type, for example DATE [1]
▶ Starts at Q6 (25:46)
Starts at Q6 (25:46) · by HyperDavester. 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.