I have some update statements like this:
UPDATE tmp
SET MyVarCharColumn1 = ISNULL(SomeOtherVarCharColumn,0)
FROM #myTempTable tmp;
Note that MyVarCharColumn1 is of type VarChar() but in real life it only will have numeric-like values.
Now I want to change it to ADD a numeric value like integer value of 10 to final value of MyVarCharColumn1 and then again convert it back to VARCHAR().
So for example if currently it is "23" now I want it to be "33" .
What's a safe way of casting in that update statement that could also handle empty strings?