Derived Column Expression Help

  • Hello,

    I need some help converting this CASE statement to a valid expression in SSIS.

    Thanks

    CASE WHEN OpenAmountDomestic = 0 THEN 0 ELSE DATEDIFF(day,DueDate,GETDATE()) END AS [OPENDAYS]

  • Try

    OpenAmountDomestic = 0 ? 0 : DATEDIFF( "d", DueDate , GETDATE() )

    I can't test it for you but it should be along those lines

    Mack

  • Thanks, that was perfect

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

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