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