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 | |
|---|---|---|
| 1CREATE TABLE students (firstName TEXT, yearLevel INT, email TEXT); | ASELECT firstName, yearLevel, email FROM students; | |
| 2INSERT INTO students VALUES ('Ava', 9, 'ava@school.edu'); | BfirstName, yearLevel, email | |
| 3Each attribute holds one fact about the entity, so a student's name, year level and email each get their own field. | CField names are values from one record, not attributes. The fields should be named after the properties, such as firstName, yearLevel and email. | |
| 4To see the attributes (fields) stored for the student entity, you list them in a SELECT from its table. | DTwo attributes (name and year level) are squashed into one field. Each attribute should have its own field, such as firstName and yearLevel. | |
| 5CREATE TABLE students (nameAndYear TEXT, email TEXT); | EThe students entity has three attributes, so the table gets three fields: firstName, yearLevel and email. | |
| 6CREATE TABLE students (Ava TEXT, 9 INT, ava@school.edu TEXT); | FOne instance of the student entity, stored as one record with a value for each field. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
attribute — An attribute is one property of an entity, like a student's name or year level. Each attribute becomes one field (column) in the entity's table, and each instance of the entity is one record.Student(name, yearLevel, email)CREATE TABLE students (
email VARCHAR(50)
);SELECT firstName, yearLevel FROM students;INSERT INTO students VALUES ('Ava', 7);SELECT COUNT(*) FROM students;