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

Q24 · 2210/23/O/N/25 Q8

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

Q242210/23/O/N/25original Q8Structured · 5 marks
Question 8 from 2210/23/O/N/25

Worked solution

(a)(i)

Write: EquipmentID [1]

(ii)

Each entry is unique, with no repeating data (other fields such as Description or Name repeat) [1]

(b)

SELECT Description, Name
FROM EquipmentLoan
WHERE Returned = "No";

SELECT Description, Name [1]

FROM EquipmentLoan [1]

WHERE Returned = "No" [1]

KEY IDEAChoose a unique field as the key and select only the columns the question asks for.
TOTAL 5 marks

Official mark scheme

Mark scheme for 2210/23/O/N/25 question 8
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.