Skip to main contentSkip to solution

Consider the following table:

NameClassDOBGenderCityMarks
RohanXI2008MDelhi85
PriyaXII2006FMumbai92
AnkitXI2007MDelhi88
NidhiXII2006FMumbai90
AaravIX2009MKolkata78
SimranXI2007FChandigarh94
RahulXII2006MPune80
IshitaX2009FHyderabad87

From the above table 'STUDENT', which query will fetch the names of the students scoring more than 85 marks?

Solution

✅ Correct Option: 1

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.

Keyboard Shortcuts

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