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

Create view with 3 tables of which T1 points to T2 and T3 and T2 points to T3 for a different record

$
0
0

newbie at creating Views needing some help. I have 3 tables. T1 is the work order header table.T1 has a column called 'Part ID' to identify the fabricated part. T2 has a list of all the parts that are used to make the T1 fabricated part, It also has a column called 'Part ID'. T3 is the Parts table which has all the info about the parts. I want to create a view linking this all together. What is the best way to do this. I need info on the T1 Header Part ID  and I also need info for the T2 Part ID from the PARTS table. To get info for just one or the other of T1 or T2, I think I can do that. To get it for both part ID's in tables T1 and T2 gets a little confusing. 

Thanks

Joel


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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