Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2.
Count the rows of data (not the heading row). Codes run from H002 to H037.
Write: 18 [1]
Field: Code [1]
Reason: each entry is a unique identifier, so no two records share it [1]
Match each field to a different data type from the list:
| Field | Data type |
|---|---|
| Breed | text |
| Gender | Boolean |
| Age | integer |
| Arrived | date/time |
Four correct [2]
Note: two or three correct scores [1].
Write the table name after FROM and the field name after WHERE.
SELECT Code, Breed FROM Horses WHERE BreedOrigin = "Scotland";
SELECT [1]
Horses [1]
BreedOrigin [1]
▶ Whole paper
Video solution of the whole paper · by Paper solver.. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.