如何基于 SSIS 中的逻辑表达式从两列派生一列



我想根据一些逻辑语句从两列中派生出一列:

table
id col1 col additionalcol
1    a        a
2    b    c   c
3    d    e   e
4         f   f
5    g    me  g
6    i    me  i
7    j    l   l
8    k    m   m
9    n    me  n
10   o    p   p

我想根据以下语句得出一个additionalcol

        `if 
            col is empty  or me then
                take col1
        else    
            take col

使用三元运算符(条件):

(col == null || col=="me") ? col1 : col 

最新更新