Cambridge O Level Computer Science 2210 · 9.4 Structured query language (SQL)

Q10 · 2210/22/M/J/22 Q5

Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2.

Q102210/22/M/J/22original Q5Structured · 5 marks
Question 5 from 2210/22/M/J/22

Worked solution

(a)

Show only ItemNumber and Description. Single use means SingleUse is True. Stock level below reorder level means StockLevel < [ReorderLevel].

ItemNumberDescriptionSingleUseStockLevel
TableNURSENURSENURSENURSE
Sort
Show✓✓no tickno tick
CriteriaTrue<[ReorderLevel]
or

Correct rows Field and Table [1]

Correct row Show (only ItemNumber and Description ticked) [1]

Correct criteria for single use: True [1]

Correct criteria <[ReorderLevel] under StockLevel [1]

Also accepted: use the Uses field with criteria =1 in place of SingleUse.

(b)

Write: the field Uses already gives this information (single use means Uses is 1), so SingleUse is duplicated (redundant) data. [1]

KEY IDEAOne field can be compared with another field by writing the other field name in square brackets.
TOTAL 5 marks

Official mark scheme

Mark scheme for 2210/22/M/J/22 question 5
VIDEO
▶ Whole paper

Video solution of the whole paper · by Zafar Ali Khan (ZAK). 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.