English

What will be the output of the query? SELECT MACHINE ID, MACHINE NAME FROM INVENTORY WHERE QUANTITY <= 100; - Computer Science (Python)

Advertisements
Advertisements

Question

What will be the output of the query?

SELECT MACHINE ID, MACHINE NAME FROM INVENTORY WHERE QUANTITY <= 100;

Options

  • All columns of INVENTORY table with quantity greater than 100.

  • ID and name of machines with quantity less than 100 from INVENTORY table.

  • All columns of INVENTORY table with quantity greater than or equal to 100.

  • ID and name of machines with quantity less than or equal to 100 from INVENTORY table.

MCQ
Advertisements

Solution

ID and name of machines with quantity less than or equal to 100 from INVENTORY table.

Explanation:

The SELECT clause specifically chooses only the MACHINE_ID and MACHINE_NAME columns, not the entire table. The WHERE clause uses the <= operator, which filters the records to include only those where the quantity is either less than or exactly equal to 100.

shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×