I have the following string: \'BOB*\', how do I trim the * so it shows up as \'BOB\'
I tried the RTRIM(\'BOB*\',\'*\') but does not work as says needs only 1 paramet
Trim with many cases
--id = 100 101 102 103 104 105 106 107 108 109 110 111 select right(id,2)+1 from ordertbl -- 1 2 3 4 5 6 7 8 9 10 11 -- last two positions are taken select LEFT('BOB', LEN('BOB')-1) -- BO select LEFT('BOB*',1) --B select LEFT('BOB*',2) --BO