It is not quite clear to me what the rule for updating based on the one example you have given. If the rule is, for example, "in every row where the column starts with a letter followed by two digits and a space, remove the letter and append '-Error' to the number", then that can be done like this:update YourTableset YourColumn = case when patindex('[A-Za-z][0-9][0-9] %',YourColumn) > 0 then stuff(stuff(YourColumn,charindex(' ',YourColumn),1,'-Error '),1,1,'') else YourColumn end
If that is not what you are looking for can you describe the rule more precisely, similar to what I have done with my example rule?Edit: I read my own "clear" description of the rule and realized that it was not clear at all. Hopefully fixed it.