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 firstName FROM students WHERE house = 'Red'; | ACREATE TABLE products (productId INTEGER, name TEXT, price REAL); | |
| 2students(studentId, firstName, lastName, yearLevel, house, points) | BA spreadsheet is a flexible grid that gets slow and hard to manage with huge data. A database suits large amounts of data and queries. | |
| 3A database lets you query large amounts of data to find just the matching records | CA flexible spreadsheet grid does not stop mixed data types in one column. A database field has one fixed data type, so this would be rejected. | |
| 4A database makes every record follow the same structure, with a fixed data type for each field | DAsks the database a question: show the first names of only the students in Red house | |
| 5A spreadsheet cell in the points column holds the text 'lots' while the other cells hold numbers | EEvery record in the table has these same fields, each with a fixed data type | |
| 6Use a spreadsheet to store and search millions of customer records because it is best for large amounts of data | FSELECT * FROM students WHERE points > 100; |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
database — A database gives every record the same fields and data types and lets you query large amounts of data; a spreadsheet is a flexible grid.SELECT * FROM studentsSELECT * FROM students WHERE house = 'Red'SELECT COUNT(*) FROM resultsCREATE TABLE pets (
name TEXT, age INTEGER
);SELECT * FROM students WHERE yearLevel = 7