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 | |
|---|---|---|
| 1Pets(Name, Species, Age) | AINSERT INTO Pets VALUES ('Coco', 'Cat', 2); | |
| 2('Milo', 'Dog', 4) | BTwo pets are crammed into one record. Each object needs its own record (row), so Milo and Coco should be two separate rows. | |
| 3Each pet is one object, so it is stored as one row (record) in the table | COne record: one pet stored as a row, with one value for each field | |
| 4Every record in the Pets table uses the same fields, so each row has a Name, a Species and an Age | DThe record has a value for Age but the table has no Age field. Every attribute of the pet needs its own field, so Age must be added to the table. | |
| 5Pets(Name, Species, Age) ('Milo', 'Dog', 4, 'Coco', 'Cat', 2) | ESELECT Name, Species, Age FROM Pets; | |
| 6Pets(Name, Species) ('Milo', 'Dog', 4) | FA Pets table where each attribute of a pet becomes a field: Name, Species and Age |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
record — One row in a table that stores one object. Each attribute of the object becomes a field, so one pet's Name, Species and Age fill one record, and every record uses the same fields.CREATE TABLE Pets (Name, Species, Age);INSERT INTO Pets VALUES ('Rex', 'Dog', 3);SELECT Name, Species, Age FROM Pets;SELECT Name, Age FROM Pets;INSERT INTO Pets VALUES ('Rex', 'Dog', 3);
INSERT INTO Pets VALUES ('Tom', 'Cat', 2);