Question 10(c) 2024 · May-June · Paper 22 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 10
Part (c)
Question 3
Show text version of question
Question 10
Part (c)
Question 10
A television subscription service has a new database table named Contract to store details of
their subscribers’ contracts. The table contains these fields:
- ContractNumber – the contract number, for example CT567
- Months – the length of the contract in months, for example 6
- EndDate – the date the contract finishes, for example 30 November 2024
- News – the news service, yes or no
- Movie – the movie service, yes or no
- Sport – the sports service, yes or no
- Junior – the children’s service, yes or no.
Part (c)
Explain the purpose of these structured query language (SQL) statements.
Statement 1: SELECT SUM (Months) FROM Contract;
Statement 2: SELECT COUNT (News) FROM Contract WHERE News;
Statement 1 ..............................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Statement 2 ..............................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Question 11
Why this question appears here
98% assigned-topic match · Databases
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 2210_s24_qp_22.pdf
