COUNT(DISTINCT ...)
Counts the number of distinct non-null input values.
Syntax
COUNT(DISTINCT X)
Arguments
X
Type: any
The values to be counted.
Returns
Type: bigint
Returns the number of distinct non-null input values.