Oracle Error QSM-02062: GROUP BY clause in mv

Oracle Error Message

QSM-02062: GROUP BY clause in mv

Reason for the Error

The capability in question is not supported when the materialized view uses the GROUP BY clause.

Solution

Re-phrase the query to avoid the use of the GROUP BY clause.