Posted: Tue Nov 16, 2010 11:51 am Post subject: DB2 query fail in Mainframe.
Acolyte
Joined: 18 Aug 2005 Posts: 62
we have Db2 in MF, This query is failing when there is no records in table. I want to get this query done to understand this would be my first messages in the table.
SET Environment.Varibales.DUMMY = COALESCE(SELECT MAX(T.CD_RETURN) FROM Database.T_TCTRL AS T, 0);
Here is the errors.
Text:CHARACTER:[IBM][CLI Driver][DB2] SQLSTATE 01003: Null values were eliminated from the argument of a column function.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum