简体   繁体   English

Informatica Cloud Data Integration - 查找不匹配的行

[英]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。

  1. Do a lookup on table2, on join condition on id.在表 2 上查找 id 的连接条件。
  2. In exp transformation, create a flag out_flag= iif(isnull (:lkp(id)),'pass','fail')在exp转换中,创建一个flag out_flag= iif(isnull (:lkp(id)),'pass','fail')
  3. Put a filter next and keep the condition as out_flag= 'pass'接下来放置一个过滤器并将条件保持为 out_flag= 'pass'

Whole map should be like this整个地图应该是这样的

       Lkp
        |
Sq --exp|-----> fil---tgt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从Informatica云数据集成调用存储过程? - How to call a stored procedure from Informatica cloud data integration? 从Flatfile加载数据时如何在Informatica中查找被拒绝的行 - How to find the rejected rows in informatica, while loading data from flatfile Informatica Cloud-大数据管理 - Informatica Cloud - Big Data Management Informatica数据集成-更新JDBC目标上未创建主键的行 - Informatica Data Integration - Update rows on JDBC target that does not have primary keys created Informatica时间错误,源和目标数据不匹配 - Informatica Time error ,not matching souce and target data 为什么人们选择SnapLogic而不是信息解决方案进行云集成? - why do people choose SnapLogic over informatica for cloud integration? 如何在Informatica中将列数据拆分为行 - How to split column data into rows in Informatica 如何在 Informatica Cloud 中将多行合并为单行? - How to combine multiple rows into single row in Informatica Cloud? 如何将高级过滤表达式添加到 Informatica Data Integration Hub - How to add advanced filtering expressions to Informatica Data Integration Hub Informatica 与 Jenkins 集成以进行部署 - Informatica integration with Jenkins for deployment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM