ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions

N5 Computing Science 2025 Question 13

2 marks · SQL SELECT

A model collector keeps information about the items collected in a database. A query has been run and the output is shown below. modelNumber title theme pieceAmount cost 1279 Space Base Space 1422 125 7525 Colour Fun Classic 1685 90 1457 Lady Liberty Architect 1500 90 5271 Command Rover Space 750 70 1280 Dino Compound Adventure 612 60 6598 Creative Box Classic 790 45 8182 Astronaut Space 647 45 3688 Century Hawk Star Battles 253 30 1094 Tomb Treasure Adventure 161 20 2281 River Raft Adventure 18 6 Complete the SQL statement used to produce this sorted output. SELECT modelNumber, title, theme, pieceAmount, cost FROM Model ORDER BY

Marking scheme

• cost desc • pieceAmount desc The second sort can only be awarded if the first sort has used the cost field. Award one mark if both sorts are identified but are written in the wrong order. Ignore syntax errors, for example using AND instead of a comma.

Previous question: N5 Computing Science 2025 Question 12

Next question: N5 Computing Science 2025 Question 14