This message appears when a SELECT statement includes a column in the projection list and a HAVING clause, but does not include a GROUP BY clause. The SELECT statement cannot include a HAVING clause without a GROUP BY clause, unless the projection list and the HAVING clause contain only aggregate functions.