Skip to main contentSkip to solution

Consider the following table and answer the question that follows:-

STUDENT

RNOSNAMEFEES
101RENU900
102MEERANULL
103SONAM800
104RITU850
105MOHAN950

Select the correct command to get the following output:

RNOFEES
101900
104850

Solution

✅ Correct Option: 4

The output needs only the columns RNO and FEES, so the query must list them in SELECT instead of using *. It must also return rows where FEES is 900 or 850, so each condition needs its own comparison joined by OR. Option 4 does both: it returns RENU (101, 900) and RITU (104, 850).


Option 1: FEES = 900 AND 850 is not a valid comparison, and it would select all columns.

Option 2: MARKS is not a column in the table, and FEES = 900 OR 850 is incomplete because 850 is not compared to anything.

Option 3: FEES = 900 AND FEES = 850 can never be true, because one value cannot equal both. It would return no rows, and * would also show all columns.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question