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 * FROM students WHERE house = 'Red'; | ASELECT yearLevel, COUNT(*) FROM students GROUP BY yearLevel; | |
| 2UPDATE students SET points = 130 WHERE studentId = 1; | BSearches a database and returns only the matching records in seconds, giving faster service than flicking through paper files | |
| 3A government agency can inform policy by quickly summarising large amounts of stored data, such as counting students in each year level | CSeparate copies often become out of date and inconsistent. A shared database stores the data once, which reduces errors. | |
| 4An organisation saves costs and staff time by linking tables so data is stored once and joined when needed, instead of being retyped | DChanges a record once in one place so everyone sees the same correct data, reducing errors and duplicate paperwork | |
| 5A school keeps every student record in paper folders and says this is faster than a database search | ESELECT s.firstName, r.mark FROM students s JOIN results r ON s.studentId = r.studentId; | |
| 6Each department keeps its own copy of a citizen's address, so the data is more accurate | FPaper records must be searched by hand, which is slow, takes up space and is easy to misfile. A database can find a record in seconds. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
database — An organised store of data that organisations and governments can quickly search, share and update to give faster services, cut paper and errors, and inform decisions.SELECT * FROM students
WHERE house = 'Red';SELECT COUNT(*) FROM orders;UPDATE students SET points = 130
WHERE studentId = 1;SELECT AVG(mark) FROM results;CREATE TABLE students (
studentId INTEGER PRIMARY KEY,
lastName TEXT NOT NULL);