1. Home
  2. Database Management Systems
  3. Database Management Systems
  4. A table has 10 rows, and 3 of them have NULL in the email…

Added 2 Nov 2026

A table has 10 rows, and 3 of them have NULL in the email column. What does SELECT COUNT(email) return?

  1. 0
  2. 10
  3. 3
  4. 7 Correct answer

Correct answer

D. 7

16 views

MCQSEXAM

Explanation

COUNT(column) skips NULLs, so it returns 7. COUNT(*) counts every row and would return 10.

Reference

Asked in: GATE CS, NTS, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Database Management Systems MCQs

Practise all Database Management Systems MCQs

Similar MCQs