Skip to main content Skip to complementary content

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!