ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
2 marks · SQL SELECT
The sorted output below was produced by running a query in a database. Product productCode productName manufacturer description 366 Picture Frame Frame Design Silver 439 Crystal Vase Glass Gifts 10cm 316 Glass Bowl Glass Gifts 20cm 285 Scented Candle WaxWorks Vanilla 123 Candle Holder WaxWorks Glass jar 56 Tea Lights WaxWorks Pack of 6 112 Place Mats Zingy Zebra Pack of 5 Complete the SQL statement used to produce this sorted output. SELECT productCode, productName, manufacturer, description FROM Product ORDER BY
One mark for first sort • manufacturer (ASC) If first sort present then one mark for second sort • productCode DESC Do not accept “manufacturer DESC”. Allow “ascending” and “descending” as not scaffolded. “productCode DESC” on its own, 0 marks