on 01-29-2016 9:42 AM
I have table with column1 and column2. I would like to add new column (for example column3 name) in BODS using definition:
table.column1*100
+to_decimal( nvl(table.column2,'0'),'','',0)
Column1 contain value 2011001100 and column2 is empty (contain space). In BODS 14.0 column3 contain 201100110000 but in BODS 14.2 I received NULL and I do not know why (definitions are the same in BODS 14.0 and 14.2).
Hi ,
Please Cast() function, it may work.
Regards
aSGAR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Konard
i checked the function in my DS 14.2, for me it is working fine.
my question is if you are trying to add the column1 and column2 with nvl function applying then if the column 1 is varchar then it will show null value.
if you want to concatenate then try || (pipe) symbol instead of + sign. then even if the column1 is varchar it will give you the column1 value if the column2 is null.
Thanks
Prasannakumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.