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:

ട്വിസ്റ്റഡ് പെയർ (Twisted Pair) കേബിളിനെ കംപ്യൂട്ടറുമായി ബന്ധിപ്പിക്കാൻ ഉപയോഗിക്കുന്ന കണക്ടർ ഏതാണ് ?
Find the odd one.

Which of the following statements is/are correct?

i. The OS manages all the resources of a computer.

ii. The OS provides an interface to the user.

iii. The program execution order is decided by the OS when multiple application programs need to be run.

Before submitting a project, you want to check for spelling mistakes in the entire document. Which function key will help?
ക്ലൗഡ് (Claude) എന്ന ജനറേറ്റീവ് AI അസിസ്റ്റന്റ് വികസിപ്പിച്ചെടുത്തത് ഏത് കമ്പനിയാണ് ?