[英]Informatica Cloud Data Integration - find non matching rows
I am working on Informatica Cloud Data Integraion.I have 2 tables- Tab1 and Tab2.The joining column is id.I want to find all records in Tab1 that do not exist in Tab2.What transformations can I use to achieve this?我正在研究 Informatica Cloud Data Integraion。我有 2 个表 - Tab1 和 Tab2。连接列是 id。我想在 Tab1 中查找 Tab2 中不存在的所有记录。我可以使用哪些转换来实现这一目标?
Tab1
id name
1 n1
2 n2
3 n3
Tab2
id
1
5
6
I want to get records with id 2 and 3 from tab1 as they do not exist in tab2我想从 tab1 获取 id 为 2 和 3 的记录,因为它们在 tab2 中不存在
You can use database source qualifier overwrite sql您可以使用数据库源限定符覆盖 sql
Select * from table1 where id not in ( select id from table2)
Or else you can use informatica like below.或者,您可以使用如下所示的 informatica。
out_flag= iif(isnull (:lkp(id)),'pass','fail')
out_flag= iif(isnull (:lkp(id)),'pass','fail')
Whole map should be like this整个地图应该是这样的
Lkp
|
Sq --exp|-----> fil---tgt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.