Hi All,
Question: What's the best way to ID decimal values in a string column? (Not every value contains a decimal point.)
Background: We have a string column that contains mostly decimal values like "12.050", "1.450", and "9.830", besides the occasional "NA" value. I need to strip the final 0 out of the thousandths place wherever there is thousandths place. (There's always a zero at the thousandths place as our business does not deal in thousandths.)
I can't simply convert the string because of the occasional "NA" values. "NA" is the only non-numeric value that should ever occur in this column. I assume I need to split the data set with "NA" records on one side and the remaining [numeric] values on the other side. What's the proper way to do this?
We're using SQL 2008 R2 and SSIS 2008.
Thanks,
Erc