Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1Orders(orderId, student, item1, item2, item3) | AHouses and house colours are stored with every student, so the colour is repeated and an update anomaly can happen. Put house and houseColour in a separate Houses table. | |
| 2Students(studentId, name, house) + Orders(orderId, studentId, item) | BFOREIGN KEY (studentId) REFERENCES Students(studentId) | |
| 3One big table stores the same student details again on every order row, which wastes space and risks anomalies | CRepeating group: subject1, subject2 and subject3 repeat one kind of data in a record, so this table is not in 1NF. Move subjects into their own table with one subject per row. | |
| 4Normalising is organising tables to reduce redundancy by splitting data and linking the new tables with keys | D1 | Ava Nguyen | Red | Pencil 2 | Ava Nguyen | Red | Notebook 3 | Ava Nguyen | Red | Ruler | |
| 5Students(studentId, name, subject1, subject2, subject3) | EA normalised design: data split into two linked tables so each fact is stored once and joined by a key | |
| 6Students(studentId, name, house, houseColour) | FAn unnormalised table with a repeating group: item1, item2 and item3 repeat the same kind of data in one record |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
normalisation — Organising tables to reduce repeated data and prevent anomalies by splitting data into linked tables, using the normal forms 1NF to 3NF.-- Remove repeating groups: 1NF-- Remove partial dependencies: 2NFCREATE TABLE Customer (
CustomerID INT PRIMARY KEY,
Name VARCHAR(50));CustomerID INT,
FOREIGN KEY (CustomerID)
REFERENCES Customer(CustomerID)SELECT Orders.OrderID, Customer.Name
FROM Orders JOIN Customer
ON Orders.CustomerID = Customer.CustomerID;