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

N5 Computing Science 2026 Question 12

2 marks · SQL INSERT, UPDATE and DELETE

Explain why this SQL statement is not fit for purpose. Rewrite the SQL statement to remove the records correctly. A card collector uses a database to store information on the cards in their collection. Some of the data currently stored is shown below. Collection cardName series expansion setNum cardCode graded Night Dog Little Monster Sparkling Sea 92477 D5826 True Alex Kaur MBA League Legendary Ballers 16748 F9730 True Fire Mouse Little Monster Evolved Monsters 66438 B7351 False Unblock Spells Gathered Trapped Potential 59351 C1043 True Sam Speed MBA League The Court 30134 E2904 False … … … … … … The collector no longer collects MBA League cards and wants to remove them from the database. The following SQL statement is written to remove these records. DELETE FROM Collection WHERE expansion = "The Court";

Marking scheme

This will not delete all the MBA League cards. Other series may also have an expansion called “The Court”. WHERE series="MBA League";

Previous question: N5 Computing Science 2026 Question 11

Next question: N5 Computing Science 2026 Question 13