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 | |
|---|---|---|
| 1SELECT Name, Year FROM Students | AORDER BY Score DESC | |
| 2WHERE Year = 8 | BThis changes the table. A query should only show the Year 8 records in a new view and leave all the original records in place. | |
| 3A query asks a question of a table and shows the answer as a new view, without changing the table | CA query that shows only the Name and Year fields from the Students table | |
| 4A query can set a sort order so the results are shown in a chosen order | DA criteria that keeps only the records where Year is 8 | |
| 5A student deletes the Year 7 records from the Students table to 'show only Year 8' | ESELECT * FROM Pets WHERE Type = 'Dog' | |
| 6SELECT Name FROM Students WHERE Year = 8, to show each student's name and their score | FThe query only selects the Name field, so Score is not shown. Add Score to the fields list: SELECT Name, Score. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
query — A saved question asked of a table. It shows only the fields and records that answer it, as a new view, and leaves the original table unchanged.SELECT Name, Year
FROM StudentsSELECT Name, Year
FROM StudentsSELECT Name
FROM Students
WHERE Year = 8SELECT Name
FROM Students
WHERE Year = 8SELECT Name, Score
FROM Students
ORDER BY Score DESC