I would like to know how to replace all characters between 2 dashes (-) and replace the dashes as well. It should be in a single select statement, not a loop. The text between the dashes can be variable length and any character. The characters before and after the dashes can also be variable length.
141911001-200-20 = 14191100120 // Replaced -200-
141911001-10-50 = 14191100150 // Replaced -10-
141911001-50-10 = 14191100110 // Replaced -50-
141911001-aaaa-85 = 14191100185 // Replaced --aaaa--
11111111111-bbbbb-4444 = 111111111114444 //Replace-bbbbb-