The specification ROWNO may only be used in QUERY statements. 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>, that is, ROWNO is 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 logical AND.
In the case of UNION, EXCEPT or INTERSECT, the effect can be achieved by two successive QUERY statements.
Correct the search condition in the SQL statement accordingly.