I trying to write an SSIS expression to get the right part of a string before the separator and then put the new string in a new column. I have used Substring and Findstring in derived column but I am having trouble.
Company
Virgin Altantic - F30008
Google - F38115
I need to retrieve F30008 and F38115.
I used the expression:
(DT_STR,65,1252)(FINDSTRING(Company,"- ",1) != 0 ? (SUBSTRING(Company,1,FINDSTRING(Company,"-",1) + 2)) : Company)
From this expression I got:
Company
Virgin Altantic -
Google -