Help Converting Case Statement to SSIS Expression

  • Hello,

    I need some help turning this into an Expression in SSIS. Appreciate any help. Thanks

    CASE WHEN ISNUMERIC (Left (DESIGN_NO,1)) = 0 THEN DESIGN_NO

    WHEN ISNUMERIC (Left (DESIGN_NO,5)) = 1 THEN Left (DESIGN_NO,5)

    ELSE Left (DESIGN_NO,4) End AS Final_Die

  • Something like this:

    ISNUMERIC (Left (DESIGN_NO,1)) = 0 ? DESIGN_NO : ( ISNUMERIC (Left (DESIGN_NO,5)) = 1 ? Left (DESIGN_NO,5) : Left (DESIGN_NO,4) )

    The syntax may not be 100% correct, but there should be enough there to get you started.

    John

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

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