Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Derived Column expression to select number between -

$
0
0

Hello

I'm looking for the expression in a SSIS Derived Column to select the number between - and add in front a 20, this is so I can get the purchase year of a product.

There is a column call Product_Ref which has a format like this.

RNGH-AW18-BBCS

RNGH-AW17-HGCS

What I want is to get the number between the hyphens so for RNGH-AW18-BBCS I would get 18, and I want to put a 20 in front of that so I get 2018.

What is the expression code needed to do that?

Regards

SQLSearcher99


Viewing all articles
Browse latest Browse all 24688

Trending Articles