Hi,
I have the error "The data types of the operands for the operation "=" are not compatible or comparable. SQLSTATE=42818. (IES 10901) (WIS 10901)" when i generating the report with MORE THAN ONE OBJECTS. When i generate the report with ONLY ONE OBJECT i dont get any error message. plz find the SQL below
In UNIVERSE i have it as "DB2ADMIN.KA_COD.MASTER_VALUE". I would need to fix this in Universe level. i tried with changing the data type which is not works...
Please note that currently all objects i referring is CHARACTER type.
SELECT
KA_COD_LKP_PrizeName.DESCRRIPTION
FROM
(
select DB2ADMIN.KA_COD.CATEGORY, substr(DB2ADMIN.KA_COD.MASTER_VALUE,locate(':',DB2ADMIN.KA_COD.MASTER_VALUE)+1,
length(DB2ADMIN.KA_COD.MASTER_VALUE)) as DESCRRIPTION,substr(DB2ADMIN.KA_COD.MASTER_CODE,locate('~',DB2ADMIN.KA_COD.MASTER_CODE)+1,
length(DB2ADMIN.KA_COD.MASTER_CODE))as code
from DB2ADMIN.KA_COD
) AS KA_COD_LKP_PrizeName,
DB2ADMIN.KA_DT,
DB2ADMIN.KA_PRM
WHERE
( DB2ADMIN.KA_PRM.PRIZE_TYPE= KA_COD_LKP_PrizeName.CODE )
AND ( DB2ADMIN.KA_PRM.DATE_KEY=DB2ADMIN.KA_DT.DATE_KEY )
AND ( KA_COD_LKP_PrizeName.CATEGORY='PromotionPrizeTypes' )
AND
DB2ADMIN.KA_DT.DATE_KEY = @prompt('Enter CDC:','N','Time Period\CDC',Mono,Free,Persistent,,User:0)
Can anyone plz check?