keplan
asked on
use of nested statment (CASE or if...else...) in derive column transfromation in SSIS
Hi,
I need to add large case statemnt in a derive column tranformation in SSIS. The query is similar to below however I need to nested more than the sample below. The simple query like below is throwing an error., i'm not sure what wrong with that syntax. I would appreciate if I can get samples nested query for SSIS derive column transformation.
ISNULL(amt) ? "1":Amt && iif(Amt)=="$0.01 > $1,000" ? "2":Amt
Thanks
I need to add large case statemnt in a derive column tranformation in SSIS. The query is similar to below however I need to nested more than the sample below. The simple query like below is throwing an error., i'm not sure what wrong with that syntax. I would appreciate if I can get samples nested query for SSIS derive column transformation.
ISNULL(amt) ? "1":Amt && iif(Amt)=="$0.01 > $1,000" ? "2":Amt
Thanks
ASKER
Please note: i need in use in derive column transformation in SSIS, you sample is for t-sql
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for that, sorry i am not familiar with Ternary operator, kindly post some samples if possible, and also ca ternary operator be nested?
ASKER
helpful
case when isnull(Amt,1) then
case Amt when 0.01 > 1,000 then 2
else Amt end
else Amt end