Avatar of TomBalla
Flag for United States of America asked on

sql server one to many

I have two tables I need to relate.  In table A, we have part#1, part#2, and part#3.  In table B, we just have part#.  How should I go about connecting these tables?  Table A has 3 different part fields in case the user needs to use 3 parts.  Table B has the part#, part description, and Qty on hand.
Visual Basic.NETMicrosoft SQL Server

Avatar of undefined
Last Comment

8/22/2022 - Mon
Nasir Razzaq

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Saurabh Bhadauria

If you are reluctant to change your design then you can create a view and can use joins or union all as per your requirement and design.

So, main thing is on what basis you will join? That should be coming from your side. Check the values what will link in both the tables.
And yes, if you can manage to give resource and design changes, you should consider the expert's advice to do some normalization. If not than another experts advice of creation of view is also good.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck