I keep getting:
ERROR: [IBM][CLI Driver][DB2/NT64] SQL0413N Overflow occurred
during numeric data type conversion. SQLSTATE=22003
Query
= SELECT
acct.PI as AbacusID,
acct.PN,
acct.AM,
acct.T1,
acct.MG,
summ.DT,
summ.cc_code1,
cast(summ.TWRR as decimal(18,8)),
summ.*
FROM
PORTATTR acct
left join SUMMRET summ
on acct.PI = summ.PI
WHERE acct.PN = '9841M287003'
When i dont cast summ.TWRR its giving me the scientific representation of the number and I would prefer to see the actual number. Not sure if it has to do with me using an odbc driver or what, any suggestions would be great. I've tried increasing the decimal up and its not helping. New to DB2 so please go easy on me. Also,if i change the filter to in this case to a different account, sometime it will come back fine other not. I understand its due to the number exceeding the length of the decimal i'm casting, but if i dont know what the potential max could be I'm a bit lost