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 | |
|---|---|---|
| 1WHERE Town = 'Leeds' | AThe text value Leeds has no quotes, so it is read as a field name instead of text. It should be 'Leeds'. | |
| 2WHERE Member = TRUE | BTRUE is a Boolean value and must not be in quotes, which turn it into text. It should be Member = TRUE. | |
| 3A single character field such as a grade is compared using the character in quotes | CSelects only records where the Boolean field Member is true, with TRUE written without quotes | |
| 4A date field is compared with a date value written in quotes, using a comparison operator | DWHERE Grade = 'A' | |
| 5WHERE Town = Leeds | ESelects only records where the text field Town holds Leeds, so the text value is written in quotes | |
| 6WHERE Member = 'TRUE' | FWHERE JoinDate > '2024-01-01' |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
WHERE Town = 'Leeds' — The value in a WHERE condition must match the field's data type: text and characters go in quotes, numbers do not, and Boolean fields use TRUE or FALSE, e.g. Member = TRUE.-- current members only
SELECT Name FROM Club
WHERE Member = TRUE;-- students who got grade A
SELECT Name FROM Student
WHERE Grade = 'A';SELECT * FROM Customer
WHERE Town = 'Leeds';SELECT * FROM Orders
WHERE OrderDate > #01/01/2024#;-- members who have not renewed
SELECT Name FROM Club
WHERE Renewed = FALSE;