The parser reports a syntax error on a `HAVING` clause if there is no `GROUP BY` clause. Here's a valid example statement where the `GROUP BY` is implicit ```SQL SELECT COUNT(c_custkey) FROM customer HAVING COUNT(c_custkey) > 5; ```
The parser reports a syntax error on a
HAVINGclause if there is noGROUP BYclause.Here's a valid example statement where the
GROUP BYis implicit