Skip to main contentSkip to solution

Given Relation: 'STUDENT'

SNOSNAMEMARKS
1Amit20
2Karuna40
3KavitaNULL
4Anuj30

Find the value of :

SELECT AVG(MARKS) FROM STUDENT;

Solution

✅ Correct Option: 1

AVG ignores NULL values, so Kavita's row is left out of both the sum and the count. Only 3 marks are used: 20, 40 and 30.

AVG(MARKS)=20+40+303=903=30\text{AVG(MARKS)} = \dfrac{20 + 40 + 30}{3} = \dfrac{90}{3} = \boxed{30}

Keyboard Shortcuts

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