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 | |
|---|---|---|
| 1StudentID → Postcode, Postcode → Suburb | ASuburb depends on Postcode, a non-key field, so this is a transitive dependency and the table is not in 3NF | |
| 2Student(StudentID, Name, Postcode) Postcode(Postcode, Suburb) | BPostcode → Suburb (determinant is not the key, so move it to a new table) | |
| 33NF means every field depends on the key, the whole key and nothing but the key | CThe Postcode to Suburb data is lost; the dependent field must move to a new table with Postcode as its primary key | |
| 4A table must already be in 2NF before it can be in 3NF | DThe result of removing the transitive dependency, so each non-key field depends only on its own table's key | |
| 5Customer(CustomerID, Name, Postcode, Suburb) -- already in 3NF | EA transitive dependency: Suburb depends on the key only through Postcode, a non-key field, so the table breaks 3NF | |
| 6Removing Suburb from Customer and deleting it, without creating a Postcode table | F1NF → 2NF (remove partial dependencies) → 3NF (remove transitive dependencies) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
3NF — A table in 2NF where no non-key field depends on another non-key field. Every field depends on the key, the whole key and nothing but the key.Postcode -> Suburb
-- postcode determines suburbCREATE TABLE Suburb (
Postcode CHAR(4) PRIMARY KEY,
SuburbName VARCHAR(30));Key, the whole key and nothing but the keyStudentID -> Postcode -> Suburb
This is a transitive dependencySELECT Customer.Name, Suburb.SuburbName
FROM Customer JOIN Suburb
ON Customer.Postcode = Suburb.Postcode;