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:
Example:
In EMP, we have employees with DEPTNO 10, 20, 30 and 50. In DEPT, we have DEPTNO 10, 20, 30 and 40. DEPT will be MASTER table as it has less rows.
Normal Join:
Master Outer Join:
Detail Outer Join:
Full Outer Join:
Caution: Curly braces are needed in Syntax.
Note: A normal or master outer join performs faster than a full outer or detail outer join.
Types of Joins:
- Normal joins: With a normal join, the PowerCenter Server discards all rows of data from the master and detail source that do not match, based on the condition.
- Master Outer join: This join keeps all rows of data from the detail source and the matching rows from the master source. It discards the unmatched rows from the master source.
- Detail Outer join: This 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.
- Full Outer join: A full outer join keeps all rows of data from both the master and detail sources.
Example:
In EMP, we have employees with DEPTNO 10, 20, 30 and 50. In DEPT, we have DEPTNO 10, 20, 30 and 40. DEPT will be MASTER table as it has less rows.
Normal Join:
All employees of 10, 20 and 30 will be there as only they are matching.
Synax: DEPT.DEPTNO=EMP.DEPTNO
Master Outer Join:
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 will be NULL.
Syntax: {EMP LEFT OUTER JOIN DEPT ON DEPT.DEPTNO=EMP.DEPTNO}
Detail Outer Join:
All employees of 10, 20 and 30 will be there. There will be one record for DEPTNO 40 and corresponding data of EMP columns will be NULL.
Syntax: {EMP RIGHT OUTER JOIN DEPT ON DEPT.DEPTNO=EMP.DEPTNO}
Full Outer Join:
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 will be NULL. There will be one record for DEPTNO 40 and corresponding data of EMP columns will be NULL.
Syntax: {EMP FULL OUTER JOIN DEPT ON DEPT.DEPTNO=EMP.DEPTNO}
Caution: Curly braces are needed in Syntax.
Note: A normal or master outer join performs faster than a full outer or detail outer join.
Too good. Thanks a lot. Keep posting.
ReplyDeleteThis is very informative and this is very usefull to us.
ReplyDeleteInformatica online training , informatica training in bangalore
informatica online training , informatica training in bangalore , informatica training , informatica online trainig in bangalore
This is very good information
ReplyDeleteinformatica training , infromatica online training, informatica training in bangalore, infromatica online training in bangalore
ReplyDeleteGreat Article
Artificial Intelligence Projects
machine learning final year projects 2020
JavaScript Training in Chennai
JavaScript Training in Chennai Project Centers in Chennai
I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai
İstanbul
ReplyDeleteSivas
Kırıkkale
Zonguldak
Iğdır
2SB
Konya
ReplyDeleteKayseri
Malatya
Elazığ
Tokat
EİPİBL
adana evden eve nakliyat
ReplyDeletebolu evden eve nakliyat
diyarbakır evden eve nakliyat
sinop evden eve nakliyat
kilis evden eve nakliyat
M6A82
EAE25
ReplyDeleteAmasya Evden Eve Nakliyat
trenbolone enanthate for sale
deca durabolin for sale
Iğdır Evden Eve Nakliyat
steroids for sale
anapolon oxymetholone for sale
Muğla Evden Eve Nakliyat
order trenbolone enanthate
buy testosterone propionat
74A99
ReplyDeleteDiyarbakır Lojistik
Bilecik Şehir İçi Nakliyat
Karabük Parça Eşya Taşıma
Zonguldak Şehir İçi Nakliyat
Eskişehir Parça Eşya Taşıma
Huobi Güvenilir mi
Adana Parça Eşya Taşıma
Bursa Lojistik
Ünye Fayans Ustası
AD192
ReplyDeleteEtlik Fayans Ustası
Batman Şehirler Arası Nakliyat
Bolu Lojistik
Kripto Para Nedir
Tokat Lojistik
Artvin Şehirler Arası Nakliyat
Tokat Parça Eşya Taşıma
Artvin Lojistik
Çerkezköy Çelik Kapı
6C1DF
ReplyDeleteAltındağ Boya Ustası
Rize Evden Eve Nakliyat
Silivri Çatı Ustası
Ünye Çekici
Bayburt Lojistik
Aksaray Evden Eve Nakliyat
Batıkent Fayans Ustası
Ardahan Evden Eve Nakliyat
Kayseri Şehir İçi Nakliyat
F4E85
ReplyDeleteclenbuterol for sale
order pharmacy steroids
testosterone propionat for sale
buy boldenone
parabolan for sale
primobolan
buy turinabol
trenbolone enanthate
order fat burner
0A177
ReplyDeleteTwitter Beğeni Hilesi
Bitcoin Nasıl Kazanılır
Caw Coin Hangi Borsada
Twitter Retweet Satın Al
Snapchat Takipçi Satın Al
Görüntülü Sohbet
Instagram Beğeni Hilesi
Dxgm Coin Hangi Borsada
Mexc Borsası Güvenilir mi