Skip to main contentSkip to solution

Consider the following table 'CUET':

CUET

ROLLNOMARKS
110
210

Which of the following SQL statements will give same output?

(A) SELECT MAX(MARKS)FROM CUET;

(B) SELECT MIN(MARKS)FROM CUET;

(C) SELECT AVG(MARKS)FROM CUET;

(D) SELECT SUM(MARKS)FROM CUET;

Solution

✅ Correct Option: 2

Both rows have the same marks, 10, so the three statements give the same value:

MAX(MARKS) = 10

MIN(MARKS) = 10

AVG(MARKS) = 10+102=10\dfrac{10 + 10}{2} = 10

SUM(MARKS) = 10+10=2010 + 10 = 20, which differs from the others.


Option 1: SUM adds both rows and returns 20, so it does not match the rest.

Keyboard Shortcuts

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