🎙 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 2 of 10

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

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

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

Correct answer: 2

COUNT(column) counts only non-NULL values.

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 →