Oracle Error QSM-02017: subquery present in the HAVING clause

Oracle Error Message

QSM-02017: subquery present in the HAVING clause

Reason for the Error

The capability in question is not supported when the materialized view uses a subquery in the HAVING clause.

Solution

Re-phrase the query to avoid the subquery in the HAVING clause.