Skip to main contentSkip to solution

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.

Keyboard Shortcuts

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