How to fix the Oracle error QSM-02104: aggregate function in a filter condition in the HAVING clause?
In this post, you’ll learn more about the Oracle ErrorQSM-02104: aggregate function in a filter condition in the HAVING clause with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
QSM-02104: aggregate function in a filter condition in the HAVING clause
Reason for the Error QSM-02104: aggregate function in a filter condition in the HAVING clause
The capability in question is not supported when the materialized view references an aggregate function in a filter condition in the HAVING clause.
How to fix the Error QSM-02104: aggregate function in a filter condition in the HAVING clause ?
You can fix this error in Oracle by following the below steps
Re-phrase the query to avoid the use of aggregates in filter conditions in the HAVING clause.
Leave Your Comment