ANR2938E
The column 'column' is not allowed in this context; it must either be named in the GROUP BY clause or be nested within an aggregate function.

Explanation

A column reference was specified that is neither a column specified in a GROUP BY clause nor is a column nested in one of the aggregate functions COUNT, MAX, MIN, SUM, AVG, VARIANCE, or STDDEV. The use of the column reference is prohibited because either 1) the GROUP BY clause has been specified, 2) the HAVING clause has been specified, or 3) at least one aggregate function is present.

System action

The SQL query is terminated.

User response

None.