How to fix the Oracle error QSM-02138: agg(expr) requires correspondng agg(expr*expr) function?
In this post, you’ll learn more about the Oracle ErrorQSM-02138: agg(expr) requires correspondng agg(expr*expr) function with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
QSM-02138: agg(expr) requires correspondng agg(expr*expr) function
Reason for the Error QSM-02138: agg(expr) requires correspondng agg(expr*expr) function
The capability in question is not supported when the materialized view uses certain aggregate functions but omits an invocation of that same aggregate function on the square of the same argument.
How to fix the Error QSM-02138: agg(expr) requires correspondng agg(expr*expr) function ?
You can fix this error in Oracle by following the below steps
Add an invocation of the same aggregate function on the square of the same argument (that is, the argument multiplied by itself).
Leave Your Comment