Avoid SQL Artifacts with SQL statement including Subqueries (JEE) | CAST Appmarq