Case statement in SSIS

  • Hi All,

    How can I achieve below case statement in SSIS derived column transformation.

    CASE WHEN B='N' THEN ISNULL(C,D) ELSE F

    Do let me know if any other suggestion.

    Thanks in advance,

    Joy

  • Here you go:

    ( == "N") ? (ISNULL([C])? [D] : [C]) : [F]

    I made the assumption that all columns have the same datatype. If not, you'll need to add some typecasting.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply