Standard difficulty · 20 questions · 40 marks · Time: 40 minutes
Show your working for Sections B and C. Answers are on the last page — try every question first!
Introduction to Structured Query Language (SQL) · AW-11IP-SQL-2026-V1 · For parents — fold back or tear off before handing the sheet to your child.
| Q | Answer | Working |
|---|---|---|
| 1 | (d) DDL commands | — |
| 2 | (a) 4 | check the WHERE condition on every row; a NULL never satisfies a comparison |
| 3 | (c) Glue Stick | ascending: smallest first, NULL first; order: Glue Stick, Paper Clips, File Folder, Stapler, Torch, Water Bottle, Umbrella, School Bag |
| 4 | (b) Naina | % stands for any run of characters and _ for exactly one; the pattern means the name has a as its second letter |
| 5 | (b) DML (Data Manipulation Language) | CREATE, ALTER and DROP define structure; INSERT, UPDATE and DELETE change data; SELECT queries it |
| 6 | (c) 32000 | the row does not match the WHERE condition, so it is unchanged |
| 7 | (d) 6 | 3 rows match the condition and go; 9 − 3 |
| 8 | (d) DATE | DATE holds values like '2009-04-12' |
| 9 | It is easy to learn with English-like commands, and it works with almost every relational DBMS to create, change and query data. | — |
| 10 | Zoya, Lakshmi, Manav, Sana | kept rows sorted by Salary from smallest |
| 11 | A, B | DISTINCT shows each value once; ORDER BY sorts them |
| 12 | Lunch Box, Umbrella, Water Bottle | IN keeps a row whose value is any one in the list; ORDER BY Name sorts alphabetically |
| 13 | 1 | BETWEEN includes both end values |
| 14 | (a) 6; (b) 4 | degree = columns shown; cardinality = rows kept |
| 15 | (a) 1; (b) 8; (c) 0 | = NULL is never TRUE, so (c) returns no rows |
| 16 | (a) 2; (b) 31000 | rows matching: Nikhil, Sahil |
| 17 | CREATE TABLE STUDENT (RollNo INT PRIMARY KEY, Name VARCHAR(20) NOT NULL, Section CHAR(1), Marks INT, DOB DATE); INSERT INTO STUDENT VALUES (1, "Asha", "A", 78, "2009-04-12"); | — |
| 18 | (a) 1; (b) Pooja, Aarav, Nikhil; (c) 2 | (c) distinct values: M, F |
| 19 | (a) SELECT * FROM ITEM WHERE Price > 40; (b) SELECT IName, Price FROM ITEM WHERE Price BETWEEN 10 AND 180 ORDER BY Price DESC; (c) SELECT IName FROM ITEM WHERE IName LIKE 'R%'; | they return 3, 6 and 1 rows |
| 20 | (a) 4; (b) 4; (c) Umbrella, Lunch Box | the DELETE checks the updated values; 3 rows removed |