HSTPC0039E The column
sql_column_name
is not allowed in this context; it must either be named in the
GROUP BY clause or be nested within an aggregate function.
Explanation
The column specified is not allowed in this context. It must either
be named in the GROUP BY clause or nested within an aggregate function.