2210/21/M/J/25 question 8: worked solution (May/June 2025, paper 21)
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. Q21 2210/21/M/J/25 original Q8 Structured · 7 marks Worked solution (a)(i) Write: Boolean [1] (ii) There are only two possible values, Yes and No (true or false) [1] (b) Find the rows where the driver is A Patel and show three columns. RouteID Destination Time BC02 The Fountain 9:10 BC08 Sunset Quay 12:01 BC27 The University 16:45 All three rows correct [2] Note: one or two rows correct scores [1] . (c) SELECT Destination FROM BUS WHERE Return = Yes; SELECT Destination [1] FROM BUS [1] WHERE Return = Yes [1] KEY IDEA A yes/no field is Boolean, and SELECT, FROM and WHERE each do one job. TOTAL 7 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.