Oracle Error QSM-02024: no GROUP BY clause

Oracle Error Message

QSM-02024: no GROUP BY clause

Reason for the Error

The capability in question is not supported when the materialized view does not use a GROUP BY clause.

Solution

Re-phrase the query to use a GROUP BY clause.