Single Choice Easy

QWhich aggregation function in MySQL returns the number of distinct values in a column?

ID: #15501 Aggregation functions - MySQL 92 views
Question Info
#15501Q ID
EasyDifficulty
Aggregation functions - MySQLTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A AVG
  • B SUM
  • C COUNT
  • D DISTINCT
Correct Answer

Explanation

The COUNT function in MySQL, when used with the DISTINCT keyword, returns the number of distinct values in a column. It counts only the unique values and disregards duplicates.

Share This Question

Challenge a friend or share with your study group.