Answer by Usman Butt
Yes, I guess you are on the right track but my combination would be LEN and SUBSTRING/RIGHT, something like LEN(AccountName) > 16 ? SUBSTRING(AccountName,1,16) + " / " + RIGHT(AccountName,2) :...
View ArticleAnswer by Fatherjack
Something to cosider is a mechanism that accepts variable length account numbers, such as : DECLARE @var_1 VARCHAR(20) = '123456789' DECLARE @var_2 VARCHAR(3) = ' / ' DECLARE @var_3 VARCHAR(2) SET...
View ArticleAnswer by jhowe
This is what I came up with in the end thanks everyone for your help! TRIM(AccountNumber) == "" ? NULL(DT_WSTR,1) : TRIM(SUBSTRING(AccountNumber,1,16) + " / " + SUBSTRING(AccountNumber,16,2))...
View Article
More Pages to Explore .....