Test Index

CBSE Class 12 Computer Science 2026 Paper Set 4 Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 14 of 37
Marks: +1, -0
What will be the output of the query ?
SELECT MACHINE_ID, MACHINE_NAME FROM INVENTORY
WHERE QUANTITY <= 100;
Solution:  
Explanation:
SELECT MACHINE_ID, MACHINE_NAME → only two columns are shown: the machine ID and the machine name (not all columns).
WHERE QUANTITY <= 100 → only rows whose quantity is less than or equal to 100 are selected, so a machine with quantity exactly 100 is included.
Key point: Option (B) misses the rows with quantity equal to 100; <= includes the boundary value.
Answer:
Option D (ID and name of machines with quantity less than or equal to 100 from INVENTORY table.)
© examsnet.com
Advertisements
Go to Question: