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, age FROM students; | AThere is no comma between the field names. It should be SELECT name, age FROM students; | |
| 2SELECT * FROM students; | BShows all columns for every record in the students table | |
| 3Get just the title and year fields from a table called movies | CShows only the name and age columns for every record in the students table | |
| 4A SQL statement should end with a semicolon to mark where it finishes | DThe FROM keyword is missing, so SQL doesn't know which table to read. It should be SELECT name, age FROM students; | |
| 5SELECT name, age students; | ESELECT * FROM teams; | |
| 6SELECT name age FROM students; | FSELECT title, year FROM movies; |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
SELECT name, age FROM students; — SELECT lists the fields to show and FROM names the table. This returns the name and age columns for every record in students. SELECT * shows all columns. End with a semicolon.SELECT name, age FROM students;SELECT name, age FROM students;SELECT * FROM students;SELECT name, age
FROM students;SELECT name, age FROM students;