COUNTD

    Aggregate functions

    Syntax

    COUNTD( value )
    

    Description

    Returns the number of unique values in the group.

    See also COUNTD_APPROX.

    Argument types:

    • valueAny

    Return type: Number (whole)

    Examples

    COUNTD([ClientID])
    

    Data source support

    Materialized Dataset, ClickHouse 1.1, Microsoft SQL Server 2017 (14.0), MySQL 5.6, PostgreSQL 9.3.