View Single Post
Old 09-09-2004, 10:38 AM   #10 (permalink)
Rawb
Crazy
 
Location: Salt Town, UT
Okay. Now I understand more clearly the problem.

So definitely add productId to the jobOrder, and remove it from the part table.

Now, the real question is do you use the same parts for the product every time, if you do, you could link them to the product instead, like a list of ingredients that are used to make a product. Now if parts can be used to make multiple products, you will need a glue table.

So basically it boils down to this now:
Product <--- JobOrder (forgive my messy semantics, it means that joborder has a fk to Product)
Product <--- Glue? <--- Part
-- or --
Product <--- JobOrder
JobOrder <--- Glue <--- Part


Again, I'm probably misunderstanding the project, but that's my solution from how I see it.
Rawb is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73