Master Outer Join in Informatica


Four types of joins in Informatica

1) Normal Join – Normal join discards all the rows of data from the master and detail source that do not match, based on the condition.

2) Master Join – Master outer join discards all the unmatched rows from the master source and keeps all the rows from the detail source and the matching rows from the master source.

3) Detail Join – Detail outer join keeps all rows of data from the master source and the matching rows from the detail source. It discards the unmatched rows from the detail source.

4) Full Outer Join – Full outer join keeps all rows of data from both the master and detail sources.


Within a Joiner Transformation’s ports tabs, M column, we must designate the two different data pipelines as either the master or detail. Consider below example of two data sources having CustomerID as the common criterion to bring data together. This field, CustomerID, can be used to merge the data from two sources into a single record.


Table A

OrderIDCustomerIDOrder Date
1000C101/01/2010
1001C201/01/2010
1002C301/01/2010

Table B

CustomerIDCustomer Name
C1David
C3Tom
C4Michael



A Master Outer join in the Joiner transformation is the same as a LEFT OUTER JOIN in SQL (considering Detail pipeline as LEFT side), and so returns all rows from the Detail pipeline, and the matched rows from the Master pipeline. This is what the SQL might look like. Remember TABLE_B is our detail pipeline and TABLE_A is our master pipeline.

SELECT *
FROM TABLE_B
LEFT OUTER JOIN TABLE_A
ON TABLE_A.CustomerID = TABLE_B.CustomerID

Here’s a venn diagram and data results to help you better visualize the master outer join in Informatica.

Master Outer Join in Informatica Conclusion

Remember the key to a master outer join in Informatica is the ability to relate one data pipeline to another. While sometimes SQL may be simpler to perform the same functionality, many times our data sources are not tables, but flat files. Or our tables might be in different databases. When thinking of the master outer join in Informatica, think of the LEFT OUTER JOIN in SQL where our Detail pipeline is the LEFT side. We retain all the records in the left side and attempt to relate records from our master pipeline. If our ID columns do not align, Informatica places NULL values in the master pipeline ports.




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值