Let's say that I have some products, and each product is composed of various parts. Some parts are used in more than one product.
For example, let's say I had these two tables:
PRODUCTS TABLE:
[U][B]ID | NAME[/B][/U]
001 | Widget 1
002 | Widget 2
003 | Widget 3
PARTS TABLE:
[U][B]ID | NAME[/B][/U]
00A | Part 1
00B | Part 2
00C | Part 3
00D | Part 4
Let's say that Widget 1 uses Part 1 and Part 2; Widget 2 uses Part 1 and Part 3, and Widget 3 uses Part 1, Part 2, and Part 3.
Is there any way I could make the following two queries?
1.) Select all parts associated with Widget 1. (This should return Part 1 and Part 2 as results.)
2.) Select all products associated with Part 3. (This would return Widget 2 and Widget 3.)
How can I "connect" or "link" these two tables so that I can make these type of queries? And will the queries run bog down the system inordinately? Sorry if this is a newbie-ish question.
Thanks for any guidance!
Jason