Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2.
Count the rows (not the heading row): A01 to A05, S01 to S07, S20, S21, S22, S25 and T19.
Write: 17 [1]
Write: Fieldname: PartNum [1]
Reason: the data in this field is unique for each record. [1]
Show all four fields. Sort Cost from largest to smallest. Quantity < 10 is the only criteria.
| PartNum | Description | Cost | Quantity | |
|---|---|---|---|---|
| Table | AUDIOPARTS | AUDIOPARTS | AUDIOPARTS | AUDIOPARTS |
| Sort | Descending | |||
| Show | ✓ | ✓ | ✓ | ✓ |
| Criteria | <10 | |||
| or |
All four fields and the table name AUDIOPARTS correct [1]
Sort row: Descending under Cost [1]
Show row: all four boxes ticked [1]
Criteria: <10 under Quantity [1]
▶ Whole paper
Video solution of the whole paper · by Quixotic Academy. 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.