MCQ Practice Single Best Answer Topic: Aggregation functions - MySQL

Q Which aggregation function in MySQL returns the total number of non-null values in a column?

Question ID
#15502
Subchapter
Aggregation functions - MySQL
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A AVG
  • B SUM
  • C COUNT
  • D NONNULL
Correct Answer: C

Explanation

The COUNT function in MySQL, when used without any modifiers, returns the total number of non-null values in a column. It counts all the non-null records in the specified column.

Share This Question

Share this MCQ with your friends or study group.