Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

ASP.NET and SQL - get info from two tables with no association

Avatar of SupportECI
SupportECI asked on
ASP.NETMicrosoft SQL Server 2005SQL
4 Comments1 Solution306 ViewsLast Modified:
I have two tables: Inventory and Inventory_Subs
Inventory contains part_num, list_price, our_price, and other details.
Inventory_Subs contains part_num, sub_part_num, sub_mfg

I need to search the Inventory_Subs table for certain sub_part numbers, get the associated part_num.  From there I need to get all the info in Inventory for part_num.

At this time there are no relationships between the two tables.  Inventory will only have 1 part_num, but Inventory_Subs with almost certainly have multiple.

How can I get this data into my asp.net app?  Should I create a relationship and use a join?  Stored Proc?  Please keep in mind that I am NOT a SQL expert!!!!!!  I have never done more than simple select, update and such.

As always, thanks for your help.