Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm loading data from a SSMS database and I can't seem to get rid of these curly brackets around the data { }
Here is a sample
trim
([person_id])&'|'&(Date(current_date,'YYYYMMDD') as ProviderKeyLoads as
{XXXXX-XX-XXXX-XXX}|20130712
Why are they there and how do I get rid of them?
purgechar(person_id, '{}' ) is one option
textbetween(person_id,'{','}') is another
i.e. trim(purgechar([person_id],'{}'))&'|'&(Date(current_date,'YYYYMMDD') as ProviderKey
purgechar(person_id, '{}' ) is one option
textbetween(person_id,'{','}') is another
i.e. trim(purgechar([person_id],'{}'))&'|'&(Date(current_date,'YYYYMMDD') as ProviderKey
Great, thank you. I was just confused because those brackets do not exist in the data that I am pulling from the SQL table.