2210/21/M/J/21 question 6: worked solution (May/June 2021, paper 21)
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. Q6 2210/21/M/J/21 original Q6 Structured · 6 marks Worked solution (a) Write: the data in the ID field is unique (not repeated) in every record. [1] (b) Count the rows: ABI to THR. Write: 18 [1] (c) Genres with overdue books means Overdue is more than 0. Sort Overdue from largest to smallest. Show ID, GenreName and Overdue. ID GenreName Overdue Table GENRE GENRE GENRE Sort Descending Show ✓ ✓ ✓ Criteria >0 or The three correct fields, named correctly [1] Correct table name and Show ticked in every column [1] Correct sort: Descending on Overdue [1] Correct criteria: >0 on Overdue [1] KEY IDEA Use >0 to find records where something is not zero, and Descending to put the largest first. TOTAL 6 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.