Replace multiple Values in Derived coulmn expresion

  • Hi !

    I would like to Swap the values in a column called Store ID using the derived Coulmn in SSIS

    Below is my expression and could some one guide me here .. Thanks in Advance

    (StoreID==4)? 10: StoreID || (StoreID==10)?4 :StoreID

  • Try this:

    (StoreID == 4) ? 10 : ((StoreID == 10) ? 4 :StoreID)

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

  • Thank you very much ... that worked for me 🙂

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

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