Challenger App

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:

In a computer keyboard the Alt, Ctrl, Shift, Del & Insert keys are known as
What does ASCII stand for?
ചിത്ര ആൽബം നിർമിക്കാൻ സഹായിക്കുന്ന പ്രോഗ്രാം :
The maximum number of bits sufficient to represent an octal number in the binary format is :
ട്വിസ്റ്റഡ് പെയർ (Twisted Pair) കേബിളിനെ കംപ്യൂട്ടറുമായി ബന്ധിപ്പിക്കാൻ ഉപയോഗിക്കുന്ന കണക്ടർ ഏതാണ് ?