如何在Azure数据工厂中合并3列并将其作为单列。

huangapple go评论63阅读模式
英文:

How to join 3 columns and make it as a single column in azure data factory

问题

Input:
First Name, middle name, lastname
Priya, null, Raju
Ramesh, shakti, Prabha

Output:
Firstname, middlename, lastname, Fullname
Priya, 空, Raju, Priya Raju
Ramesh, shakti, Prabha, Ramesh shakti Prabha

我使用了concat函数,但如果有null值,如何替换为空白值。

英文:

I want to join 3 columns and make it as a single column. While joining, if value is null, then replace it with default value (blank).

Input:
First Name, middle name, lastname
Priya, null, Raju
Ramesh, shakti, Prabha

Output:
Firstname, middlename, lastname, Fullname
Priya, null, Raju, Priya Raju
Ramesh, Shakti, Prabha, Ramesh Shakti Prabha

I used concat but if it has null how to replace with blank value

答案1

得分: 1

你可以使用这个表达式 iifNull({ColumnName}, ''') 来替代空值。

英文:

you can use this expression iifNull({ColumnName}, '') to replace null.

huangapple
  • 本文由 发表于 2023年5月10日 18:53:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76217539.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定