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 | |
|---|---|---|
| 1OrderLine(OrderID PK, ProductID PK, Qty) | ARepeating groups (Item1, Item2, Item3) break 1NF. Fix: one row per item, using a composite key of OrderID and ProductID. | |
| 2Product(ProductID PK, ProductName, Price) | B2NF result: Qty depends on the whole composite key, so it stays here while product details move to their own table. | |
| 3After splitting out a new table, the old table keeps the new table's key as a foreign key so the data can be linked back together. | CCaptain depends on House, not on StudentID (a transitive dependency), so this breaks 3NF. Move House and Captain to a House table linked by a HouseID foreign key. | |
| 4Checking for anomalies after normalising: a product's price change now needs only one row to be edited. | D2NF result: product details depend only on ProductID, so each is stored once instead of in every order row. | |
| 5Order(OrderID PK, Item1, Item2, Item3) | EUPDATE Product SET Price = 5 WHERE ProductID = 2; | |
| 6Student(StudentID PK, Name, House, Captain) | FStudent(StudentID PK, Name, HouseID FK) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
1NF, 2NF, 3NF — Work through 1NF, 2NF, then 3NF, splitting data into new tables linked by foreign keys so no data is lost and anomalies are removed.CREATE TABLE Customer (
CustID INT PRIMARY KEY, Name TEXT);CREATE TABLE Orders (OrderID INT,
CustID INT, FOREIGN KEY (CustID)
REFERENCES Customer(CustID));OrderLine(OrderID, ProductID, Qty)
Product(ProductID, ProductName, Price)Suburb(PostCode, SuburbName)
Customer(CustID, Name, PostCode)UPDATE Product SET Price = 12.50
WHERE ProductID = 3;