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

if else statement in derived column in ssis

$
0
0

Hi

I am using a if else statement in derived columnn transformation

like if test_code = 2 then value should be T

and if test_code = 3 then value should be F

AND REST OF THE VALUE SHOULD REMAIN UNCHANGED IN THE TEST_CODE COLUMN

I am using following expression

test_code = 2 ? "T":"F"

THIS CODE WILL CHANGE ALL THE VALUE TO "F" IF IT is not 2.

How can we bulild such an expression

Please Help Thanks


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>