Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2.
Write: SubjectCode: Text (it has letters)
Exams: Number (both answers must be right for the mark). [1]
Write: a Boolean field can have only two values, but Candidates has many different values. [1]
Practicals < 1 means Practicals is 0: Mathematics, Geography, History and Geology. Show SubjectName and Candidates, sorted by SubjectName A to Z.
| SubjectName | Candidates |
|---|---|
| Geography | 200 |
| Geology | 80 |
| History | 250 |
| Mathematics | 350 |
Correct data [1]
Correct layout (SubjectName and Candidates only) [1]
Correct order (ascending by name) [1]
Fewer than 150 means <150. Sort Candidates from largest to smallest.
| SubjectCode | SubjectName | Candidates | |
|---|---|---|---|
| Table | ASSESS | ASSESS | ASSESS |
| Sort | Descending | ||
| Show | ✓ | ✓ | ✓ |
| Criteria | <150 | ||
| or |
Correct field names and table names [1]
Correct sort (Descending on Candidates) and Show rows [1]
Correct criteria: <150 [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.