Consider the table 'Student' with the following attributes:
Roll no, Name, Class, Marks
Which query will display the maximum marks of the Student?
Consider the table 'Student' with the following attributes:
Roll no, Name, Class, Marks
Which query will display the maximum marks of the Student?
Solution
✅ Correct Option: 1
The aggregate function MAX() takes a column name and returns the largest value in that column. The table is named after FROM, so SELECT MAX(Marks) FROM Student; returns the highest marks.
Option 2: MAX() is invalid because MAX needs a specific column. Only COUNT() accepts *.
Option 3: MAXIMUM is not an SQL function. The correct name is MAX.
Option 4: IN is used to test membership in a list. The table must be named using FROM.
Related questions:
2026: 19 May Shift 1
2025: 21 May Shift 1
2026: 29 May Shift 2