View Single Post
Old 09-09-2004, 09:51 AM   #8 (permalink)
welshbyte
Insane
 
Location: Wales, UK, Europe, Earth, Milky Way, Universe
Quote:
Originally Posted by feelgood
Parts {
partId = 1, jobId = 1, productId = 2, qty = 4
partId = 2, jobId = 1, productId = 2, qty = 1
partId = 3, jobId = 1, productId = 2, qty = 8
partId = 4, jobId = 1, productId = 2, qty = 1
}
This is telling me that the same product is listed against one job order several times with different qty's. This wouldnt happen would it? More likely this would happen:

Parts {
partId = 1, jobId = 1, productId = 2, qty = 14
partId = 2, jobId = 1, productId = 4, qty = 5
partId = 2, jobId = 2, productId = 3, qty = 1
partId = 2, jobId = 3, productId = 2, qty = 12
}

..etc

What i'm saying is, a quantity of one product would only be listed for one job in this table once.

Surely this is how it would work in practice? Or am i not getting the way the system works.
__________________
There are only two industries that refer to their customers as "users". - Edward Tufte
welshbyte 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