Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

JOIN TYPES

In SQL, a join is a relational operator that combines data from multiple tables
into a single result set. The Joiner transformation acts in much the same manner
, except that tables can originate from different databases or flat files.
Types of Joins:
Normal
Master Outer
Detail Outer
Full Outer
Note: A normal or master outer join performs faster than a full outer or detail
outer join.
Example: In EMP, we have employees with DEPTNO 10, 20, 30 and 50. In DEPT, we ha
ve DEPTNO 10, 20, 30 and 40. DEPT will be MASTER table as it has less rows.
Normal Join:
With a normal join, the Power Center Server discards all rows of data from the m
aster and detail source that do not match, based on the condition.
All employees of 10, 20 and 30 will be there as only they are matching.
Master Outer Join:
This join keeps all rows of data from the detail source and the matching rows fr
om the master source. It discards the unmatched rows from the master source.
All data of employees of 10, 20 and 30 will be there.
There will be employees of DEPTNO 50 and corresponding DNAME and LOC Columns wil
l be NULL.
Detail Outer Join:
This join keeps all rows of data from the master source and the matching rows fr
om the detail source. It discards the unmatched rows from the detail source.
All employees of 10, 20 and 30 will be there.
There will be one record for DEPTNO 40 and corresponding data of EMP columns wil
l be NULL.
Full Outer Join:
A full outer join keeps all rows of data from both the master and detail sources
.
All data of employees of 10, 20 and 30 will be there.
There will be employees of DEPTNO 50 and corresponding DNAME and LOC Columns wil
l be NULL.
There will be one record for DEPTNO 40 and corresponding data of EMP Columns wil
l be NULL.
Read more: http://informaticatutorials-naveen.blogspot.com/2011/04/joiner-transf
ormation_20.html#ixzz2Q4gmRiMP
Under Creative Commons License: Attribution Non-Commercial

You might also like