Vinny Johnson
asked on
SQL query to replace character if exists within first 60 characters
I have a long string and need to replace a "%" with a "-" but only if the "%" is within the first 60 characters.
Example input
recording-20181012_183357- 7205756104 -0-141850% 2523171996 48923-0-HV DA-callhal f-15475983 977%3A0_%5 BcallingPa rtyNumber% 5D.wav
example output
recording-20181012_183357- 7205756104 -0-141850- 2523171996 48923-0-HV DA-callhal f-15475983 977%3A0_%5 BcallingPa rtyNumber% 5D.wav
Example input
recording-20181012_183357-
example output
recording-20181012_183357-
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
replace(substring(mycol,1,
Thank you!!