Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9090

Re: Left Outer join

$
0
0

Hi Sumeet,

 

This can be easily achieved using graphical calculation view.

Take a left outer join of Table1 with Table2 on A_ID, you'll get below o/p :

Table1.A_ID     Table1.Desc1      Table2.A_ID     Table2.Desc2

1                         ABC                    1                         ghgh

1                         DEF                    1                         ghgh

2                         GHI                     2                         rerer

2                         JKL                     2                         rerer

3                         MNO                   ?                            ?

 

Now take a PROJECTION and apply filter : Table2.A_ID is null

You'll get the below o/p:

 

Table1.A_ID     Table1.Desc1      Table2.A_ID     Table2.Desc2

3                         MNO                   ?                         ?

 

Now in the final defult PROJECTION take only the required three columns in the O/P :

Table1.A_ID     Table1.Desc1      Table2.Desc2

3                         MNO                     ?      

 

Hope this solves your problem.

 

Regards


Viewing all articles
Browse latest Browse all 9090

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>