Past-paper question · 2019 May-June · Paper 11 · Q2(c)(iii)

Question 2(c)(iii) 2019 · May-June · Paper 11 · 5 marks

Original past-paper question for 2(C)(III)
Original past-paper question for 2(C)(III)
Original past-paper question for 2(C)(III)
Original past-paper question for 2(C)(III)
Reveal official mark-scheme answer Official mark-scheme answer for 2(C)(III)

Official answer for Question 2

Part (c)

(iii)

Question 1

mark per bullet point

Question 5

✓
•
✓
Select with correct 5 fields
✓
•
✓
From LICENCE
✓
•
✓
Where ExpiryDate <= '31/12/2019' (any appropriate date type)
✓
•
✓
Group by CustomerID
✓
•
✓
Order by Cost (with or without ASC, but not DESC)
✓
SELECT CustomerID, SoftwareID, LicenceType,
✓
Cost, ExpiryDate
✓
FROM LICENCE
✓
WHERE ExpiryDate <= '31/12/2019'
✓
GROUP BY CustomerID ORDER BY Cost;
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s19_ms_11.pdf →

Show text version of question

Question 2

Part (c)

(iii)

Question 2

A software company produces software and distributes it under different software licences.

The database has the following tables:

CUSTOMER(CustomerID, CompanyName)

SOFTWARE(SoftwareID, SoftwareName, OperatingSystem, Description)

LICENCE(LicenceID, CustomerID, SoftwareID, DateOfPurchase, LicenceType, Cost, ExpiryDate)

(iii)

The company needs a list of all software licences that have an expiry date on or before

31/12/2019.

Write an SQL query to return the fields CustomerID, SoftwareID, LicenceType, Cost and ExpiryDate for all licences that expire on, or before 31/12/2019. Group the output by CustomerID, and in ascending order of cost.

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.....................................................................................................................................

[5]

Question 7

Topic relevance

Why this question appears here

71% assigned-topic match · Hardware › Logic gates and logic circuits

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 9608_s19_qp_11.pdf

Keep practising this topic