🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: GROUP BY and HAVING: all 10 questions

Quiz: GROUP BY and HAVING · Question 4 of 10

A column has values 10, NULL, 20. What is AVG(column)?

A column has values 10, NULL, 20. What is AVG(column)?

  1. A.10
  2. B.15
  3. C.NULL
  4. D.30
Answer & explanation

Correct answer: 15

AVG ignores NULL: (10 + 20) / 2 = 15.

Can you get the rest right without peeking?

Take the timed Quiz: GROUP BY and HAVING quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →