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 mark BETWEEN 60 AND 80 | AWHERE house NOT IN ('Red', 'Blue') | |
| 2WHERE house IN ('Red', 'Blue') | BWHERE yearLevel IN (7, 9, 10) | |
| 3IN replaces repeated OR conditions on the same field | CKeeps rows where house is Red or Blue, matching any value in the list | |
| 4NOT IN excludes every value in the list | DBETWEEN needs the keyword AND between the low and high values, not a comma. It should be BETWEEN 5 AND 20. | |
| 5WHERE price BETWEEN 5, 20 | EKeeps rows where mark is from 60 to 80, including both 60 and 80 | |
| 6WHERE house IN 'Red', 'Blue' | FThe list after IN must be inside brackets. It should be IN ('Red', 'Blue'). |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
BETWEEN low AND high — Tests if a value is inside a range, including both limits. Its partner IN (a, b, c) checks a value against a list, replacing repeated OR. NOT IN excludes the list.SELECT firstName, points FROM students
WHERE points BETWEEN 90 AND 120;SELECT firstName FROM students
WHERE yearLevel BETWEEN 7 AND 8;SELECT firstName, house FROM students
WHERE house IN ('Red', 'Blue');SELECT firstName, yearLevel FROM students
WHERE yearLevel NOT IN (7, 8);SELECT name, price FROM products
WHERE category IN ('Tech', 'Sport');