Professional KnowledgeHardIBPS SO IT

Which SQL aggregate ignores NULLs, unlike COUNT(*)?

  1. A. COUNT(*)
  2. B. SUM
  3. C. ROW_NUMBER
  4. D. None; all count NULLs

Correct answer: B. SUM

SUM, AVG, MIN, MAX and COUNT(col) skip NULLs; COUNT(*) counts rows.

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic