2210/22/M/J/22 question 5: worked solution (May/June 2022, paper 22)
Show as plain textHide plain text
Cambridge O Level Computer Science 2210 · 9.4 Structured query language (SQL) Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2. Q10 2210/22/M/J/22 original Q5 Structured · 5 marks Worked solution (a) Show only ItemNumber and Description. Single use means SingleUse is True. Stock level below reorder level means StockLevel < [ReorderLevel]. ItemNumber Description SingleUse StockLevel Table NURSE NURSE NURSE NURSE Sort Show ✓ ✓ no tick no tick Criteria True <[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 IDEA One field can be compared with another field by writing the other field name in square brackets. TOTAL 5 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Zafar Ali Khan (ZAK). Tap the picture to open it on YouTube.