PLS-00867
The field names for all iteration controls must match.
Cause
The field names for an iteration control did not match the field names for another iteration control.
Action
Use column aliases to make the field names match, or use an explicit type for the iterand.