Oracle Error QSM-02028: group by CUBE

Oracle Error Message

QSM-02028: group by CUBE

Reason for the Error

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

Solution

Re-phrase the query to avoid use of the CUBE operator.