Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2.
Count the field names in the table: GameID, GameName, AgeRestriction, GamePrice, NumberStock, OnOrder, DateLastOrdered, GameDescription.
Write: 8 [1]
Write: the primary key field must be unique (different) for each record. [1]
No stock means NumberStock = 0. On order means OnOrder = "Y". Sort by GameName, A to Z. Show only GameID, GameName and GamePrice.
| GameID | GameName | GamePrice | NumberStock | OnOrder | |
|---|---|---|---|---|---|
| Table | GAMES | GAMES | GAMES | GAMES | GAMES |
| Sort | Ascending | ||||
| Show | ✓ | ✓ | ✓ | no tick | no tick |
| Criteria | =0 | ="Y" | |||
| or |
Correct fields and table name [1]
Correct sort (Ascending on GameName) and Show boxes [1]
Correct criteria: =0 and ="Y" [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.