CBSE-CLASS-XII SERIES
Information-technology

Sql

4 previous year questions.

Volume: 4 Ques
Yield: Medium

High-Yield Trend

4
2025

Chapter Questions
4 MCQs

01
PYQ 2025
medium
information-technology ID: cbse-cla
Consider the given table GARMENT:
+--------+--------------+------+--------+-------+
| GCODE | GNAME | SIZE | COLOUR | PRICE |
+--------+--------------+------+--------+-------+
| 111 | TShirt | XL | Red | 1400 |
| 112 | Jeans | L | Blue | 1600 |
| 113 | Skirt | M | Black | 1100 |
| 114 | Ladies Jacket| XL | Blue | 4000 |
| 115 | Trousers | L | Brown | 1500 |
| 116 | Ladies Top | L | Pink | 1200 |
+--------+--------------+------+--------+-------+
Write SQL commands for the following: (a) To display names of those garments that are available in β€˜L’ size.
(b) To change the colour of garments with code as 115 to β€œOrange”.
(c) To add a new row with the following data:
GCODE = 117, GNAME = Kurta, SIZE = M, COLOUR = White, PRICE = 1000
(d) To remove the column β€˜COLOUR’ from the table β€˜GARMENT’.
02
PYQ 2025
medium
information-technology ID: cbse-cla
Explain the use of any three aggregate functions in SQL.
03
PYQ 2025
medium
information-technology ID: cbse-cla
................ keyword is used in SELECT statement along with column name to display duplicate values once in the result of an SQL query.
04
PYQ 2025
medium
information-technology ID: cbse-cla
Kritika did not use ASC or DESC keyword with ORDER BY clause. By default in which order will the result of the query be displayed?