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 | |
|---|---|---|
| 1Field: Name, Year | Criteria: Year = 10 | Sort: Name A-Z | AThe Score field is missing from the fields to show, so the output doesn't meet the requirement. Add Score to the fields. | |
| 2Criteria: Suburb = "Geelong" AND Age >= 18 | BSort: Price Descending | |
| 3A requirement says to show students from either Year 11 or Year 12 | CA record must meet both conditions to appear: it is from Geelong and the person is 18 or older | |
| 4A requirement says to list products by price from highest to lowest | DCriteria: Year = 11 OR Year = 12 | |
| 5Criteria: Year = 11 AND Year = 12 | EA record can't be in both years at once, so no records match. It should use OR: Year = 11 OR Year = 12. | |
| 6Fields: Name | Criteria: Score > 80 | Requirement: show Name and Score | FShows only the Name and Year fields, keeps only Year 10 records, and lists them alphabetically by name |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Fields, Criteria, Sort — The three parts of a query design: which fields to show, which records match the criteria (using AND/OR), and how results are sorted, so the output meets the requirement.SELECT FirstName, Surname
FROM Students
WHERE Year = 10SELECT Surname
FROM Students
WHERE Year = 10 AND House = "Red"SELECT Surname, Year
FROM Students
WHERE Year = 11 OR Year = 12SELECT Surname, Score
FROM Results
ORDER BY Score DESC-- Scores above 80
SELECT Surname, Score FROM Results
WHERE Score > 80