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 | |
|---|---|---|
| 1phone: '0412 345 678, 0498 765 432' | AStudentPhone(StudentID, Phone) | |
| 2Student(StudentID, Name, Subject1, Subject2, Subject3) | BRepeating columns and no key to identify each record. Fix: add a key such as TeamID and move players into a Player table with one row each. | |
| 3A multi-valued field is split out into its own table, with one value per row | CA repeating group of columns, which breaks 1NF | |
| 4Each record in a 1NF table is identified by a key | DEnrolment(StudentID, SubjectCode, Mark) with the key (StudentID, SubjectCode) | |
| 5Order(OrderID, Customer, Items) with Items = 'Pen, Ruler, Book' | EItems holds several values in one field, so it is not atomic. Fix: put each item in its own row of an OrderItem table. | |
| 6Team(Player1, Player2, Player3) with no key field | FA field holding two values at once, so it is not atomic and breaks 1NF |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
1NF — A table is in 1NF when every field holds one atomic value, there are no repeating groups, and each record is identified by a key.CREATE TABLE Phone (
studentId INT, phone VARCHAR(15),
PRIMARY KEY (studentId, phone));INSERT INTO Phone VALUES (1, '0412111222');
INSERT INTO Phone VALUES (1, '0433999888');SELECT studentId FROM Phone
WHERE phone = '0412111222';SELECT studentId, COUNT(phone)
FROM Phone
GROUP BY studentId;-- phone2 repeats the phone1 field
ALTER TABLE Student DROP COLUMN phone2;