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 FROM products; | AThe statement has no semicolon at the end. Every SQL statement should finish with a semicolon (;). | |
| 2DELETE FROM orders WHERE orderId = 1; | BUPDATE students SET points = 130 WHERE studentId = 1; | |
| 3SQL can add new data to a database | CAn SQL statement that asks the database to show the name of every product | |
| 4SQL can change data that is already stored | DThe second statement is missing its semicolon. Each statement needs its own semicolon at the end. | |
| 5SELECT firstName FROM students | EAn SQL statement that removes one order record from the database | |
| 6SELECT * FROM students; SELECT * FROM results | FINSERT INTO subjects VALUES (6, 'Art', 'Ms Cho'); |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
SQL — Structured Query Language: the standard language for asking a database for data, and for adding, changing or deleting it. Each statement ends with a semicolon.SELECT firstName FROM students;DELETE FROM students WHERE studentId = 10;SELECT name, price FROM products;UPDATE students
SET points = 130
WHERE studentId = 1;-- SQL stands for Structured Query Language
SELECT * FROM students;