Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2.
Fields are the columns: Creature, Class, Quantity, Ready for release, Offspring. Records are the rows of creatures.
Number of fields: 5 [1]
Number of records: 9 [1]
Only records with Class = Bird are chosen. Only Creature and Ready for release are shown (Class is not ticked).
| Creature | Ready for release |
|---|---|
| Short-tailed Albatross | Y |
| Emperor Penguin | Y |
| Yellow-eyed Penguin | Y |
Each correct column scores one mark, up to two. [2]
Or: two correct rows score one mark.
Four fields are needed because Quantity is used for the sort and Offspring and Ready for release for the criteria. Only Creature is ticked.
| Creature | Quantity | Offspring | Ready for release | |
|---|---|---|---|---|
| Table | MARINE | MARINE | MARINE | MARINE |
| Sort | Ascending | |||
| Show | ✓ | no tick | no tick | no tick |
| Criteria | =N | =Y | ||
| or |
Correct fields and table name in every column [1]
Sort row: Ascending under Quantity [1]
Show row: only Creature ticked [1]
Criteria: =N under Offspring and =Y under Ready for release [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.