Avoid Functions/Procedures with SQL statement using Group By clause (DB2 Server) | CAST Appmarq