2210/22/O/N/24 question 11: worked solution (October/November 2024, paper 22)

Show as 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. Q19 2210/22/O/N/24 original Q11 Structured · 8 marks Worked solution (a) Count the columns, then the rows of data. Fields: 11 [1] Records: 15 [1] (b) Write: the Type field contains data that repeats , so it is not unique [1] (c) Pick one different field for each type: Field Data type RoomNo (or Type) alphanumeric Mon (or any other day) Boolean Rate$ real Guests integer Four correct [2] Note: two or three correct scores [1] . (d) The statement picks rooms where Mon is not T, that is, where Mon is F. Show only the four named columns. RoomNo Type Guests Rate$ 104S Single 1 72.50 105S Single 1 72.50 201F Family 4 160.00 301D Double 2 200.00 304P Suite 6 700.00 Data from the four correct columns [1] Rows in the order shown, at least two rows and two columns [1] All data correct with no extra content [1] KEY IDEA <> means not equal to, so the query returns the rows where Mon is false. TOTAL 8 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.