Oracle Error QSM-01059: HAVING clause in the query block is malformed

Oracle Error Message

QSM-01059: HAVING clause in the query block is malformed

Reason for the Error

An illegal HAVING clause has been specified in the query.

Solution

Correct the query syntax and run the query again.