Worked solution from the Databases Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 2.
Write: Field: TVCode [1]
Reason: each entry in this field is a unique identifier. [1]
Choose a different type for each field: a code with letters and numbers is text, a whole screen size is an integer, YES or NO is Boolean and a price with cents is real.
| Field | Data type |
|---|---|
| TVCode | Text |
| ScreenSize | Integer |
| SmartTV | Boolean |
| Price$ | Real |
Four correct scores 2 marks; two or three correct scores 1 mark. [2]
Fill in the missing words.
SELECT TVCode, ScreenSize, Price$ FROM TVRange WHERE SmartTV = YES;
ScreenSize [1]
Price$ [1]
FROM [1]
YES [1]
▶ Whole paper
Video solution of the whole paper · by ZAINEMATICS. 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.