I'm building a product Information Database.
As part of the product data, I am required to indicate the master case used to package the product.
tblProductInfo
- ProductID
- ProdcutDesc
- MasterCase (FK to tblMasterCase)
tblMasterCase
- MasterCaseID
- MasterCaseDesc
- PalletConfiguration
For most products this setup works great. There are a handful (15-20) of products however, that have 2 piece master cases, usually a top(lid) and a bottom (case). To complicate the issue, one top may go on multiple bottoms, but never the other way arround.
some pretend examples to illustrate the point:
25 lb white cardboard bottom
goes with
Cardboard Lid
but also
25 lb Brown Cardboard Bottom
goes with
Cardboard Lid
50 lb styro Case
goes with
Styro Case Lid
(never with cardboard lid)
What is the best table / relationship structure to accomodate this data? I had considered these two options:
- many to many relationship between the two tables that allows for multiple mastercases to be selected per product.
- Setting up a 3rd table (tblMasterCaseBottom) that would only contain the bottom case and leaving the lid components in the tblMasterCase table
Thanks!
As part of the product data, I am required to indicate the master case used to package the product.
tblProductInfo
- ProductID
- ProdcutDesc
- MasterCase (FK to tblMasterCase)
tblMasterCase
- MasterCaseID
- MasterCaseDesc
- PalletConfiguration
For most products this setup works great. There are a handful (15-20) of products however, that have 2 piece master cases, usually a top(lid) and a bottom (case). To complicate the issue, one top may go on multiple bottoms, but never the other way arround.
some pretend examples to illustrate the point:
25 lb white cardboard bottom
goes with
Cardboard Lid
but also
25 lb Brown Cardboard Bottom
goes with
Cardboard Lid
50 lb styro Case
goes with
Styro Case Lid
(never with cardboard lid)
What is the best table / relationship structure to accomodate this data? I had considered these two options:
- many to many relationship between the two tables that allows for multiple mastercases to be selected per product.
- Setting up a 3rd table (tblMasterCaseBottom) that would only contain the bottom case and leaving the lid components in the tblMasterCase table
Thanks!