D
Damon Heron
I am creating tables for a food mfg. Various products are created in
batches that have ingredients. Sometimes the batches are mixed to create
new batches. Here is my problem: what is the most efficient way to design
my tables to track this?
As an example, here is a partial batch, I'll call Batch 1:
10% dark chocolate
90% milk chocolate
34% corn syrup
66% malt syrup
100% Vanilla extract
0% Vanillin
.............other ingredients, etc.
Notice that they all add up to 100%.
Batch Table has BatchID, BatchName
Chocolate table has ChocolateID and chocName: dark, milk, semi-sweet, bitter
Syrup table has SyrupID, SyrupName: corn, malt, molasses, maple
Vanilla table has VanillaID, VName: Extract, pure vanillin, whole beans
If I want to keep the composition of a batch, should I have a batch
composition table that has all of data in the one table, or should I have a
separate table for each ingredient? For instance, a chocComposition table
that has BatchNumber, ChocolateID, Percent?
Thanks for any input
Damon
batches that have ingredients. Sometimes the batches are mixed to create
new batches. Here is my problem: what is the most efficient way to design
my tables to track this?
As an example, here is a partial batch, I'll call Batch 1:
10% dark chocolate
90% milk chocolate
34% corn syrup
66% malt syrup
100% Vanilla extract
0% Vanillin
.............other ingredients, etc.
Notice that they all add up to 100%.
Batch Table has BatchID, BatchName
Chocolate table has ChocolateID and chocName: dark, milk, semi-sweet, bitter
Syrup table has SyrupID, SyrupName: corn, malt, molasses, maple
Vanilla table has VanillaID, VName: Extract, pure vanillin, whole beans
If I want to keep the composition of a batch, should I have a batch
composition table that has all of data in the one table, or should I have a
separate table for each ingredient? For instance, a chocComposition table
that has BatchNumber, ChocolateID, Percent?
Thanks for any input
Damon