MCQ PracticeSingle Best AnswerTopic: 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 ✔✖
C
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.