📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

If all values in a column are NULL, what does SUM(column) return?

A. An error
C. The number of rows
D. NULL ✅

Correct Answer: D. NULL

Explanation

  • SUM of only NULL values returns NULL because there is no value to add.
  • COUNT(column) in that case returns 0.