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

Q12 · 2210/23/O/N/22 Q5

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

Q122210/23/O/N/22original Q5Structured · 5 marks
Question 5 from 2210/23/O/N/22

Worked solution

(a)

Write: Field: ItemCode [1]

Reason: it uniquely identifies each item. [1]

(b)

Show only Description and Country. Test InStore for N (not in store). InStore is not ticked.

DescriptionCountryInStore
TableMUSEUMMUSEUMMUSEUM
Sort
Show✓✓no tick
CriteriaN
or

Correct rows Field, Table and Sort [1]

Correct row Show [1]

Correct Criteria: N under InStore [1]

KEY IDEAA primary key is unique; hide a field by not ticking Show.
TOTAL 5 marks

Official mark scheme

Mark scheme for 2210/23/O/N/22 question 5
VIDEO
▶ 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.