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 * FROM students; | AThe keyword SELECT is spelt wrong, so the tool shows a syntax error and no results table. Correct it to SELECT and run the statement again. | |
| 2SELECT firstName, house FROM students; | BThe table name is spelt wrong. The built-in table is called students, so the tool shows an error that the table cannot be found. Fix the name and run again. | |
| 3Type a statement in the query window, run it, and the results table shows the matching records. | CSELECT * FROM students; | |
| 4When an error message says a table name is unknown, check the spelling and fix the statement before running it again. | DA statement you type in the query window and run to show every field and record from the students table in the results table. | |
| 5SELECT * FROM student; | EA statement that, once run, gives a results table with only the firstName and house columns, so you check the columns match what you asked for. | |
| 6SELEC firstName FROM students; | FSELECT firstName, points FROM students WHERE points > 100; |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
SELECT * FROM students; — Type an SQL statement in the tool's query window, run it, then read the results table. If an error shows, read the message and fix the statement.SELECT * FROM students;SELECT * FROM students;SELECT firstName, house FROM students;-- Error: no such column: nme
SELECT name FROM subjects;SELECT * FROM students WHERE house = 'Red';