Consider the following table and answer the question that follows:-
STUDENT
RNO SNAME FEES 101 RENU 900 102 MEERA NULL 103 SONAM 800 104 RITU 850 105 MOHAN 950
Select the correct command to get the following output:
RNO FEES 101 900 104 850
Consider the following table and answer the question that follows:-
STUDENT
| RNO | SNAME | FEES |
|---|---|---|
| 101 | RENU | 900 |
| 102 | MEERA | NULL |
| 103 | SONAM | 800 |
| 104 | RITU | 850 |
| 105 | MOHAN | 950 |
Select the correct command to get the following output:
| RNO | FEES |
|---|---|
| 101 | 900 |
| 104 | 850 |
Solution
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.
Related questions:
2026: 18 May Shift 2
2025: 30 May Shift 2
2025: 27 May Shift 2