Test Index
Structured Query Language (SQL)
© examsnet.com
Question : 2 of 58
Marks:
+1,
-0
What will be the output of the query ?
SELECT MACHINE_ID, MACHINE_NAME FROM INVENTORY WHERE QUANTITY <= 100;
[CBSE 2026 Set 4]
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
Go to Question: