More than 16 columns were specified as sort criteria or group columns.
The total length of the order or group columns exceeds 250 characters.
The length of the longest result data type of a DISTINCT FUNCTION, together with the lengths of the group columns, exceeds 254 characters. The result data type is the data type which is assigned to the result of an EXPRESSION.
User Action:
Correct the SQL statement in such a way that you can do without one or more columns specified in the ORDER CLAUSE or GROUP CLAUSE respectively.