Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Regarding multiple inner joins and Full Outer join

$
0
0

Hi,

I have four tables A,B,C and D. A is related to D via a column D1, B is related to D via column D2 and C is related to D via column D3.

But there can be instances when C has some data for D3 and D does not have. Also, there can be instances when D has some data for D3 and C does not have.I need data of both the instances and other fields with Null. Case of Full Outer Join.

I want to write a single query where I can get data from all of 4 tables on the basis of relations stated above. Please help in building the query to fetch the data.

Thanks in Advance.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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