Message Oracle QSM-02104 - aggregate function in a filter condition in the HAVING clause

ERRORaggregate function in a filter condition in the HAVING clause
CAUSEThe capability in question is not supported when the materialized view references an aggregate function in a filter condition in the HAVING clause.
ACTIONRe-phrase the query to avoid the use of aggregates in filter conditions in the HAVING clause.