How to derived expression in derived column

patan imran 1 Reputation point
2022-01-02T08:39:41.263+00:00

Hi,

If percode in ('crp','crdist','acc')and seq_numb is null then
If transaction_ty =0 then 'crrcpt'
If transaction_ty =9 then 'crsst'
please help me.how to Derived this query

Thanks...
Mani

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarrinWu-MSFT 6,891 Reputation points
    2022-01-03T06:29:46.923+00:00

    Hi @patan imran ,

    Welcome to Microsoft Q&A!

    Please refer to below steps:
    161852-1.png
    161843-2.png

    transaction_ty == 0 ? "crrcpt" : "crsst"  
    

    161817-3.png

    For more information, please refer to below links:

    ? : (Conditional) (SSIS Expression)
    Nested Conditional Operators in an SSIS Derived Column

    Best regards,
    Carrin


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.