I have a program that will assemble separate materials into one new material. What is the best practice for storing that kind of data? (i.e, a view or a table or something else?)
table1:
MATERIAL_ID | MATERIAL_DESC |
---|---|
1 | APPLE |
2 | SUGAR |
3 | CINAMON |
4 | PIE_CRUST |
input: assemble material -->
-- APPLE
-- SUGAR
-- CINAMON
-- PIE_CRUST
output: material assembled -->
-- APPLE_PIE was created
I think APPLE_PIE should go back into the original table as a MATERIAL with a new MATERIAL_ID, but what should I do with the old data?
In some cases material will be able to be taken out of the assembly. When that happens, should it retain it's original MATERIAL_ID or just have a new one and let the old data be purged? I don't know what the best practice for this situation is. I would like to see something more practical than theoretical if possible.