Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2.
Write: Boolean [1]
There are only two possible values, Yes and No (true or false) [1]
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].
SELECT Destination FROM BUS WHERE Return = Yes;
SELECT Destination [1]
FROM BUS [1]
WHERE Return = Yes [1]
▶ Topic lesson
A lesson on this topic · by Mr Bulmer's Learning Zone. 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.