[英]Azure Data Factory compare and copy missing rows
I've got 2 tables, and I want to copy only the new rows from table A to table B.我有 2 个表,我只想将新行从表 A 复制到表 B。
So far I've declared two sources:到目前为止,我已经声明了两个来源:
Now I'm at a loss about how to say only take those rows that are missing in tableB.现在我不知道如何说只取tableB中缺少的那些行。 I've got a compound key.我有一个复合键。 In T-SQL, I'd just use a left join with multiple on statements.在 T-SQL 中,我只使用带有多个 on 语句的左连接。
you can add lookup activity as below: for example "PLANT" is unique value from table A or Id_column您可以添加如下查找活动:例如“PLANT”是表 A 或 Id_column 中的唯一值
you can add lookup activity like this: add column "flag" is using to flag from that Id do you have您可以像这样添加查找活动:添加列“flag”用于从该 Id 中标记您是否有
the last is using conditional split like this:最后一个是使用这样的条件拆分:
the last, is you can using sink to Table B...最后,您可以使用接收器连接到表 B...
I hope my explain can help your problem.我希望我的解释可以帮助您解决问题。 I'm sory if my english is bad...如果我的英语不好,我很抱歉...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.