I have to remove the special characters from the selected string.
for example : I have string 'a&b' or 'a & b'. How can i remove special characters and concatenate these string into 'ab'.
Please can any one tell me.
SELECT @id= (UPPER(SUBSTRING(@a,1,2)))+(UPPER(SUBSTRING((SELECT table.column2 FROM tablename WHERE tablename.column1 = @b),1,2))) + RIGHT('000000000' + CAST(@count as varchar(10)), 6)