Page 1 of 1

concatenation

Posted: Wed Dec 02, 2009 9:07 am
by new_ds_man
Hi All,

I have a requirement to insert a special character (ex: +) into a description column.

Example:

Source value : "klhsdpjgljhsljkdgljh"

I need to insert a '+' after every 5 characters

the O/P should be "klhsd + pjglj + hsljk + dgljh"

Posted: Wed Dec 02, 2009 9:15 am
by chulett
What have you tried? Substringing every five characters and concatenating your 'special character' between the pieces?

Posted: Wed Dec 02, 2009 12:23 pm
by new_ds_man
We went with a different alternative, fixed the data before we receive in ETL.