Oracle Error Message
ORA-32643: invalid use of window function in MODEL rule
Reason for the Error
The window functions can not be used in SQL Model rules that have FOR-loops on the left side or aggregates on the right side.
Solution
Modify the MODEL rule.