Hello I have a problem
I have Column data in string format in this format:
xxxxxxxx <***********>
I want to pertain the xxxxxxx, but get rid of <***********>, where <***********> could be any type of string of any length.
I have this command so far, but I cant wrap my head around the rest of it.
update Claims
set ClaimInitiatedBy = REPLACE(ClaimInitiatedBy,LIKE '% <%>','')
where ClaimInitiatedBy LIKE '% <%>'
This command doesn’t work, and I know it’s because of the 2nd parameter in the REPLACE function. What should be the 2nd parameter be for this to work?
I’m using SQL Server 2008, if that matters.
Thanks for the help.
Output: