OCI-03888
alias 'string' not allowed here
Cause
Referencing alias in the GROUP BY clause, HAVING clause, or grouping()/grouping_id() function is not supported when MODEL clause is present.
Action
Replace alias reference with the expression that is aliased.