Standard difficulty · 20 questions · 40 marks · Time: 45 minutes
Show your working for Sections B and C. Answers are on the last page — try every question first!
Structured Query Language (SQL) · AW-12CS-SQL-2026-V1 · For parents — fold back or tear off before handing the sheet to your child.
| Q | Answer | Working |
|---|---|---|
| 1 | (d) ALTER | — |
| 2 | (c) 3 | rows where Marks BETWEEN 58 AND 83 |
| 3 | (b) Diary | the matching rows, sorted: Diary, Crayons |
| 4 | (c) 3 | DISTINCT keeps one of each value: Desk, Paper, Writing |
| 5 | (a) 5 | rows where Price BETWEEN 35 AND 205 |
| 6 | (a) DDL: removes a table with its data | — |
| 7 | (c) 2 | 6 rows in all, 4 match the original condition |
| 8 | (b) 6 | one new column; existing rows get NULL in it |
| 9 | DDL defines and changes the structure of the database (CREATE, ALTER, DROP); DML works on the data (INSERT, UPDATE, DELETE, SELECT). | — |
| 10 | Name | Salary Rohan | 28000 Rahul | 57000 | rows where Name LIKE 'R%', sorted on Salary |
| 11 | Rahul | rows where Salary BETWEEN 45000 AND 83000 AND Dept = 'Accounts' |
| 12 | Sec A B C | DISTINCT removes repeated values; ORDER BY sorts them |
| 13 | 684 | 7 rows changed, then the column is added up |
| 14 | SELECT Name FROM STUDENT WHERE Name LIKE 'A%'; | SELECT columns FROM table WHERE condition ORDER BY column |
| 15 | 1 | rows where Marks BETWEEN 46 AND 64 AND Sec NOT IN ('C', 'A') |
| 16 | DDL | DDL: removes a table with its data |
| 17 | CREATE TABLE STUDENT (RollNo INT PRIMARY KEY, Name VARCHAR(20) NOT NULL, Sec CHAR(1), Marks INT); | — |
| 18 | (a) Name | Marks Rahul | 62 (b) Dept Accounts HR Sales | Name LIKE 'R%'; DISTINCT keeps one of each value |
| 19 | (a) SELECT IName, Price FROM ITEM WHERE Category = 'Paper' ORDER BY Price; (b) UPDATE ITEM SET Price = Price + 5 WHERE Price < 295; (c) ALTER TABLE ITEM ADD Discount INT; (d) DELETE FROM ITEM WHERE Qty > 100; | SELECT/UPDATE/DELETE are DML; ALTER TABLE is DDL |
| 20 | (a) 1; (b) 434000; (c) DML: it changes the data in the table, not its structure. | rows where Dept NOT IN ('Accounts', 'IT') AND Salary BETWEEN 31000 AND 73000 |