App Logo

No.1 PSC Learning App

1M+ Downloads
Which SQL aggregate function returns the total number of unique values in a column?

ACOUNT (DISTINCT column)

BTOTAL (DISTINCT column)

CUNIQUE (column)

DDISTINCT (column)

Answer:

A. COUNT (DISTINCT column)

Read Explanation:

  • The COUNT DISTINCT function returns the number of unique values in the column or expression, as the following example shows.
  • SELECT COUNT(DISTINCT column_name) FROM table_name; This simple query provides you with the frequency of unique values in the respective column of the passed table.
  • It's a very useful feature in SQL for tasks like finding the number of different categories, unique customers, or distinct items in your dataset.

Related Questions:

What does the term 'record' refer to in SQL?
What is the full form of ENIAC?
What are the two basic types of memory that your computer uses?
The program that use search engine websites to find keywords on web pages?
____ allows data and programs to be sent to the CPU