I need to convert a varchar string to decimal type. I thought i could use to_decimal function to do this but it requires the decimal & thousandth-place delimiters and I don’t know what to enter there.
Ah, thanks, wdaehn…I actually tried that before but overlooked the error (dirty data) and thought it wouldn’t let me map varchar to decimal directly.
Thanks also, gooian…sorry, bad me! that was a typo on this post. I had used the wizard so it would have been correct there. Like I said, just couldn’t think properly last night!
never works, and throws “9752 15216 RUN-050304 19/10/2016 20:06:57 Function call <to_decimal ( QT_SortBy_OpportunitintyName.“Booking Value”, ., , 3 ) > failed, due to error <50802>: <Cannot
convert data <QT_SortBy_OpportunitintyName.“Booking Value”> into type . Context: Column <Project Column Booking Value”
Neither Cast funtion is working in my case.
Values coming in char are as follows:
1,14,83,300
14,83,300