Consider the following table:
Name Class DOB Gender City Marks Rohan XI 2008 M Delhi 85 Priya XII 2006 F Mumbai 92 Ankit XI 2007 M Delhi 88 Nidhi XII 2006 F Mumbai 90 Aarav IX 2009 M Kolkata 78 Simran XI 2007 F Chandigarh 94 Rahul XII 2006 M Pune 80 Ishita X 2009 F Hyderabad 87
From the above table 'STUDENT', which query will fetch the names of the students scoring more than 85 marks?
Consider the following table:
| Name | Class | DOB | Gender | City | Marks |
|---|---|---|---|---|---|
| Rohan | XI | 2008 | M | Delhi | 85 |
| Priya | XII | 2006 | F | Mumbai | 92 |
| Ankit | XI | 2007 | M | Delhi | 88 |
| Nidhi | XII | 2006 | F | Mumbai | 90 |
| Aarav | IX | 2009 | M | Kolkata | 78 |
| Simran | XI | 2007 | F | Chandigarh | 94 |
| Rahul | XII | 2006 | M | Pune | 80 |
| Ishita | X | 2009 | F | Hyderabad | 87 |
From the above table 'STUDENT', which query will fetch the names of the students scoring more than 85 marks?
Solution
Option 1 selects only the Name column (SELECT Name) and filters rows with WHERE Marks > 85, so it returns exactly the names of students scoring more than 85.
For this table the result is Priya (92), Ankit (88), Nidhi (90), Simran (94) and Ishita (87).
Option 2: the condition is correct, but SELECT * returns every column, not just the names.
Option 3: Marks < 85 gives students scoring less than 85, which is the opposite condition.
Option 4: SELECT * returns all columns, and >= 85 also includes Rohan, who scored exactly 85.
Related questions:
2025: 14 May Shift 1
2026: 26 May Shift 1
2025: 27 May Shift 2
2026: 24 May Shift 1
2025: 13 May Shift 2