Share via


INVALID_WITHIN_GROUP_EXPRESSION error condition

SQLSTATE: 42K0K

Invalid function <funcName> with WITHIN GROUP.

DISTINCT_UNSUPPORTED

The function does not support DISTINCT with WITHIN GROUP.

MISMATCH_WITH_DISTINCT_INPUT

The function is invoked with DISTINCT and WITHIN GROUP but expressions <funcArg> and <orderingExpr> do not match. The WITHIN GROUP ordering expression must be picked from the function inputs.

WITHIN_GROUP_MISSING

WITHIN GROUP is required for the function.

WRONG_NUM_ORDERINGS

The function requires <expectedNum> orderings in WITHIN GROUP but got <actualNum>.