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 | |
|---|---|---|
| 1DROP TABLE orders; | AThe TABLE keyword is missing. It must be DROP TABLE students; to say that a table is being removed. | |
| 2DROP TABLE IF EXISTS results; | BDROP TABLE IF EXISTS products; | |
| 3A dropped table cannot be recovered, so the whole table and its records are gone for good | CDrops the results table only if it exists, so there is no error when the table is missing | |
| 4Remove a table safely in a setup script so it runs without an error even if the table was never created | DDROP TABLE deletes the whole table, not just old rows. Use DELETE FROM with a WHERE condition to remove only some records. | |
| 5DROP students; | EDROP TABLE students; | |
| 6DROP TABLE students; -- only to remove old rows | FPermanently removes the whole orders table, including its structure and every record in it |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
DROP TABLE — DROP TABLE name; permanently deletes a whole table and all its records. It cannot be undone. Add IF EXISTS to avoid an error when the table is missing.DROP TABLE students;DROP TABLE results;DROP TABLE IF EXISTS orders;DROP TABLE orders;
DROP TABLE products;DROP TABLE IF EXISTS subjects;