📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What does COUNT(*) count in a table?

A. Only rows with a primary key
B. Only non-NULL rows
C. All rows, including those with NULL values ✅
D. Only distinct values

Correct Answer: C. All rows, including those with NULL values

Explanation

  • COUNT(*) counts every row regardless of NULLs.
  • COUNT(column) counts only non-NULL values in that column.