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 | |
|---|---|---|
| 1house = 'Red' in one row, 'red ' in another | AA spelling variation: the same fact is stored in two different formats, so the data is inconsistent | |
| 2students.house, with houses.houseName as the only place a house name is stored | BSELECT firstName FROM students WHERE studentId = 1; | |
| 3Conflicting copies: the same fact is stored twice with different values | COne place per fact: every other table refers to the single stored value, so it cannot conflict | |
| 4Fixing inconsistency by keeping every fact in one place and linking with a key | DOnly one copy of the fact was updated, so the copies now conflict. Store the fact in one place only. | |
| 5UPDATE students SET points = 130 WHERE studentId = 1; (the same points total is also kept in another table and not changed) | ERow 1: Ava, points 120 | Row 7: Ava, points 95 | |
| 6WHERE house = 'Red' (but some rows hold 'RED' and 'red') | FSpelling variations mean the query misses matching rows. Data should be entered in one agreed format, such as 'Red'. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
data consistency — The same fact has the same value and format everywhere it is stored, with no spelling variations or conflicting copies. Storing each fact in one place helps keep it consistent.SELECT DISTINCT house FROM students;UPDATE students SET house = 'Red'
WHERE house = 'red';SELECT firstName, quantity FROM orders
JOIN students
ON orders.studentId = students.studentId;UPDATE products
SET price = 4.5
WHERE name = 'Notebook';house TEXT CHECK (house IN ('Red','Blue'))