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:

Inventor of floppy disk is
___ Printers are also called as page printers.
Which among the following is NOT an External Hardware?
EDSAC-ന്റെ പൂർണ്ണരൂപം എന്ത് ?
There are ___ function keys are present on the keyboard.