You can use a combination of LEFT , RIGHT and CASE .
You need to use CASE to check the RIGHT character itself, whether a 0 or not, and replace it with 1 . And finally, combine it with the LEFT part (after the branch from the last character) of the MYWORD string.
However, depending on your requirement, it may have a flaw. When there is a word ending in 10 , it will also be replaced.
SELECT LEFT(MYWORD,LEN(MYWORD)-1) + CASE RIGHT(MYWORD,1) WHEN '0' THEN '1' ELSE RIGHT(MYWORD,1) END
source share