Oracle Error QSM-02118: duplicate grouping sets

Oracle Error Message

QSM-02118: duplicate grouping sets

Reason for the Error

The capability in question is not supported when the materialized view redundantly references grouping sets.

Solution

Re-phrase the query to avoid the use of the redundant grouping sets.