Hi,
I have currency values like "$ 45,001.45" etc stored as varchar. Because I need to do calculations on these fields, I've tried to convert this column to decimal:
However, there are a lot of records with null or '' values which I guess are interfering with this conversion, as I'm returning an "unable to convert" error.
Any suggestions how I might achieve this?
Naith
I have currency values like "$ 45,001.45" etc stored as varchar. Because I need to do calculations on these fields, I've tried to convert this column to decimal:
Code:
convert(decimal(18,2),replace("bill_amt$",',',''))
Any suggestions how I might achieve this?
Naith