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

SQL Join

$
0
0

I have a Asset table and  a project table associated with it , the project is associated with a county and so is the asset but project can be in couple of counties so we track the county for asset individually, so if i wanted to write a query which will show the DataAsset, Project , DataAsset County , Project County how do i go about it ?   Usually i just do an inner join and when i do Counties.County i know its coming from the join but given there are two joins to county in this query i don't know how to approch this. Hope I could explain the issue i have included the diagram below if it helps. 



Viewing all articles
Browse latest Browse all 23857

Trending Articles



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