Avoid Artifacts with a Complex SELECT Clause (SQL) | CAST Appmarq