2210/22/O/N/23 question 10: worked solution (October/November 2023, paper 22)
Show as plain textHide plain text
Cambridge O Level Computer Science 2210 · 9.4 Structured query language (SQL) Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2. Q15 2210/22/O/N/23 original Q10 Structured · 8 marks Worked solution (a) Count the rows of data (not the heading row). Codes run from H002 to H037. Write: 18 [1] (b) Field: Code [1] Reason: each entry is a unique identifier, so no two records share it [1] (c) 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] . (d) 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] KEY IDEA Pick the unique field as the primary key and choose the SELECT, FROM and WHERE parts from the question. TOTAL 8 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Paper solver.. Tap the picture to open it on YouTube.