-7036: ROWNO specification not allowed in this context
Explanation:
One of the following conditions was violated:
The specification ROWNO may only be used in <QUERY statement>s. The <QUERY statement> must not contain a UNION, EXCEPT or INTERSECT specification.
The <ROWNO PREDICATE> can be used within the <SEARCH CONDITION> in the form "ROWNO < <ROWNO SPEC>" or "ROWNO <= <ROWNO SPEC>"; i.e. ROWNO is placed on the left of the operator.
The <ROWNO PREDICATE> may occur only once in a <SEARCH CONDITION>. It must be connected with other predicates by a logical AND.
User Action:
In the case of UNION, EXCEPT or INTERSECT, the effect can be achieved by two successive <QUERY statement>s.
Correct the SEARCH condition of the SQL statement accordingly.