Test Index

CBSE Class 12 Computer Science 2024 Paper Compartment Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 27 of 35
Marks: +1, -0
Consider the table Stationery given below and write the output of the SQL queries that follow.
Table : Stationery
ITEMNOITEMDISTRIBUTORQTYPRICE
401Ball Pen 0.5Reliable Stationers10016
402Gel Pen PremiumClassic Plastics15020
403Eraser BigClear Deals21010
404Eraser SmallClear Deals2005
405Sharpener ClassicClassic Plastics1508
406Gel Pen ClassicClassic Plastics10015
(i) SELECT DISTRIBUTOR, SUM(QTY) FROM STATIONERY GROUP BY DISTRIBUTOR;
(ii) SELECT ITEMNO, ITEM FROM STATIONERY WHERE DISTRIBUTOR = "Classic Plastics" AND PRICE > 10;
(iii) SELECT ITEM, QTY * PRICE AS "AMOUNT" FROM STATIONERY WHERE ITEMNO = 402;
Advertisements
Go to Question: