2210/22/O/N/25 question 7: worked solution (October/November 2025, paper 22)

Show as 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. Q23 2210/22/O/N/25 original Q7 Structured · 10 marks Worked solution (a) It is used to uniquely identify each record [1] (b) Data type Field Boolean CoastalHabitat Integer Lifespan Real Length (or Wingspan) Text Species (or Family) All four correct [2] Note: two or three correct scores [1] . (c) Swans are Bewick's swan (8 years), Mute swan (10) and Whooper swan (9). ORDER BY Lifespan puts them from lowest lifespan to highest. Species Length Wingspan Bewick’s swan 120.2 190.5 Whooper swan 150.0 230.0 Mute swan 150.0 220.2 Correct data, spelt correctly [1] Correct layout of three columns [1] Correct order [1] (d) SELECT Species, Family, Lifespan FROM WATERFOWL WHERE Lifespan >= 10 ORDER BY Species; SELECT Species, Family, Lifespan [1] FROM WATERFOWL [1] WHERE Lifespan >= 10 [1] ORDER BY Species [1] KEY IDEA ORDER BY sorts results, and at least 10 is written as >= 10. TOTAL 10 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by MAK CS. Tap the picture to open it on YouTube.