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.
Simplify the SQL statement or split it into several SQL statements.