Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2.
Write: the data in the ID field is unique (not repeated) in every record. [1]
Count the rows: ABI to THR.
Write: 18 [1]
Genres with overdue books means Overdue is more than 0. Sort Overdue from largest to smallest. Show ID, GenreName and Overdue.
| ID | GenreName | Overdue | |
|---|---|---|---|
| Table | GENRE | GENRE | GENRE |
| Sort | Descending | ||
| Show | ✓ | ✓ | ✓ |
| Criteria | >0 | ||
| or |
The three correct fields, named correctly [1]
Correct table name and Show ticked in every column [1]
Correct sort: Descending on Overdue [1]
Correct criteria: >0 on Overdue [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.