-1102: Too complicated SQL statement (too many subqueries) 

Explanation:

  1. The SQL statement contains too many subqueries. The number of permissible subqueries depends on the kind of SQL statement.
  2. Subqueries were specified in a TABLE EXPRESSION as well as in the WHERE clause and 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.