X103: Must select aggregates if using HAVING clause with no GROUP BY.

A HAVING clause can only appear in a query that selects only aggregate functions, or that has a GROUP BY clause.