Grouped query contains more than one distinct aggregate function

Error constant SQLE_INVALID_DISTINCT_AGGREGATE
ODBC 2 State 37000
ODBC 3 State 42000
Severity 15
SQLCODE –863
SQLSTATE 42W70
Sybase error code 13867
Probable cause

Two or more DISTINCT aggregate functions were specified in the same grouped query. This is only permitted if the Hash Group By operator is available. Any query block can only contain at most one DISTINCT aggregate function if the Hash Group By operator is not available.