Avoid Functions/Procedures with a complex SELECT clause (DB2 Server) | CAST Appmarq