📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What does COUNT(Name) do that COUNT(*) does not?

A. It counts distinct tables
B. It returns the longest name
C. It counts only rows where Name is not NULL ✅
D. It counts all rows including NULLs

Correct Answer: C. It counts only rows where Name is not NULL

Explanation

COUNT(column) ignores NULL values in that column, while COUNT(*) counts every row.