I need to track a transaction of an item that could move from inventory(Table A) to a machine(Table C) or to a storage location(Table B) then later move to a machine(Table C). The problem that i face is 1-many relationship in all direction
my three options are
1. Table A 1-Many Table B
2. Table A 1-Many Table C
3. Table B 1-Many Table C
Table A
InventoryID, Quantity
Table B
StorageID, InventoryID, Quantity
Table C
MachineID, InventoryID, Quantity, StorageID?
Either InventoryID is filled or StorageID is filled in.
The problem is i need to track everything meaning all the location the materials has traveled. I have been thinking of combining the Table C and B together to make it work, but haven't been able to find mechanics to make it work. Another thought was applying a bill of materials concept but i haven't figure out how to handle that one yet.
Any feedback or suggestion would greatly appreciated.
Thanks again for all the help.
my three options are
1. Table A 1-Many Table B
2. Table A 1-Many Table C
3. Table B 1-Many Table C
Table A
InventoryID, Quantity
Table B
StorageID, InventoryID, Quantity
Table C
MachineID, InventoryID, Quantity, StorageID?
Either InventoryID is filled or StorageID is filled in.
The problem is i need to track everything meaning all the location the materials has traveled. I have been thinking of combining the Table C and B together to make it work, but haven't been able to find mechanics to make it work. Another thought was applying a bill of materials concept but i haven't figure out how to handle that one yet.
Any feedback or suggestion would greatly appreciated.
Thanks again for all the help.