Avoid Functions/Procedures with queries on too many Tables (DB2 Server) | CAST Appmarq