I want to calculate a sum from a field that has varchar fields, the values are in this format ######,###.
The numbers before the comma can vary and the ones after the comma are allways 3. I get these values from a table from other database (so modifying that table is no option).
I know that I can't do a sum on a varchar, so i have to convert it
i tried different cast and convert statements but i allways get a error that says that the conversion failed
How can I do this sqlserver itself?
The numbers before the comma can vary and the ones after the comma are allways 3. I get these values from a table from other database (so modifying that table is no option).
I know that I can't do a sum on a varchar, so i have to convert it
i tried different cast and convert statements but i allways get a error that says that the conversion failed
How can I do this sqlserver itself?
Comment