-1102: Too complicated SQL statement (too many subqueries)
Explanation:
The SQL statement contains too many subqueries. The number of permissible subqueries depends on the kind of SQL statement.
Subqueries were specified in a TABLE EXPRESSION both in the WHERE clause and the HAVING clause of an SQL statement containing at least one corresponding subquery. This is not allowed.
User Action:
Simplify the SQL statement or split it into several SQL statements.