Oracle Error QSM-02025: no aggregate functions

Oracle Error Message

QSM-02025: no aggregate functions

Reason for the Error

The capability in question is not supported when the materialized view uses no aggregate functions.

Solution

Re-phrase the query to use aggregate functions.