T
Tim Johnson
I am correcting a database for a supplier.
I have normalized the great majority of the data, and am having a difficult
time thinking the next step through:
Initially, the supplier had a table for Products, another table with a
one-to-one relationship to the products specs, another one-to-one for
distributors, in which each product had a record and each supplier had a
column.
I have corrected this to the point where there is one product table, it
contains the specs, there is one distributors table that contains one record
for each distributor and a column for that specific distributor's
information, and a join table creating a many to many relationship between
the two. This seems to me to be the best way to normalize the data
(although, suggestions on this are welcome).
However, in addition to this, the supplier would like a structure set up for
plan-o-grams (the plan for where each item is placed on shelve in a store).
The trick is this, multiple items can be placed into multiple plan-o-grams.
One plan-o-gram can belong to mulitple distributors, and one distributor may
rely on mulitple plan-o-grams depending on their space availability. My
initial thoughts were to set up a series of tables:
tblProducts
index = ItemNo;
joined in a many to one relationship with
tblPOG
index = tblPOGType & ItemNo;
Joined in a many to one relationship with
tblPOGSet
index = POGSet & POGType
Joined in a many to one relationship with
tblDistributors
It seems to go against the whole purpose of relational databases, though,
the more I think about it, as I'm not sure how to create these relationships
without:
a.) Creating these as a separate entity from the Products to JoinTable to
Distributor (many to many) relationship; creating an all new normalization
issue or;
b.) Including this set somehow into the joined relationship, forcing to the
supplier to select a plan-o-gram anytime that he would like to view which
items are associated with which distributor.
Any ideas?
I have normalized the great majority of the data, and am having a difficult
time thinking the next step through:
Initially, the supplier had a table for Products, another table with a
one-to-one relationship to the products specs, another one-to-one for
distributors, in which each product had a record and each supplier had a
column.
I have corrected this to the point where there is one product table, it
contains the specs, there is one distributors table that contains one record
for each distributor and a column for that specific distributor's
information, and a join table creating a many to many relationship between
the two. This seems to me to be the best way to normalize the data
(although, suggestions on this are welcome).
However, in addition to this, the supplier would like a structure set up for
plan-o-grams (the plan for where each item is placed on shelve in a store).
The trick is this, multiple items can be placed into multiple plan-o-grams.
One plan-o-gram can belong to mulitple distributors, and one distributor may
rely on mulitple plan-o-grams depending on their space availability. My
initial thoughts were to set up a series of tables:
tblProducts
index = ItemNo;
joined in a many to one relationship with
tblPOG
index = tblPOGType & ItemNo;
Joined in a many to one relationship with
tblPOGSet
index = POGSet & POGType
Joined in a many to one relationship with
tblDistributors
It seems to go against the whole purpose of relational databases, though,
the more I think about it, as I'm not sure how to create these relationships
without:
a.) Creating these as a separate entity from the Products to JoinTable to
Distributor (many to many) relationship; creating an all new normalization
issue or;
b.) Including this set somehow into the joined relationship, forcing to the
supplier to select a plan-o-gram anytime that he would like to view which
items are associated with which distributor.
Any ideas?