Oracle Error ORA-32620: illegal subquery within MODEL rules

Oracle Error Message

ORA-32620: illegal subquery within MODEL rules

Reason for the Error

A subquery was used illegally within the MODEL rule.

Solution

Check the SQL statement and rewrite if necessary.