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 student (studentId INT, firstName VARCHAR(30)); | ACREATE TABLE student (studentId INT); CREATE TABLE subject (subjectId INT); | |
| 2Entity: Event (e.g. a school sports carnival) | BCREATE TABLE book (bookId INT, title VARCHAR(50)); | |
| 3An entity name should be a singular noun because each row is one example of it | CThe entity Student becomes one table, named with a singular noun | |
| 4Each entity becomes its own table, so students and subjects need two tables | DAn entity can be an event, not just a person, place or thing | |
| 5CREATE TABLE students (studentId INT); | EA student's name is an attribute, not an entity. It should be a column in the student table, not its own table. | |
| 6CREATE TABLE studentName (studentId INT); | FThe entity name is plural. It should be the singular noun student, because each row is one student. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
entity — A type of thing a database stores data about, such as a student, book or order. Each entity becomes one table, and its name is a singular noun.CREATE TABLE Book (bookId INT, title TEXT);CREATE TABLE Place (placeId INT, city TEXT);INSERT INTO Student VALUES (1, 'Ava');SELECT firstName FROM Student;CREATE TABLE Event (eventId INT, name TEXT);