J
JKarchner
In my DB i currently have a junction table: ModelsXREFSuppliers. It has FKs
to the Models table (Model_ID), SupplyParts table (SupplyPart_ID), and the
Suppliers table (Supplier_ID). I have just created a new junction table
called temporarily called Windows. This table contains the same 3 FKs, but
it also has three additional attributes that apply for only the windows. Is
good database design or should there only be one junction table? Now if
there is only one junction table, about 90% of the entries will be empty for
those three fields.
I originally thought that having two tables was the best idea, and then
copying the data if the record contained window data to the other table.
Would the best approach be to have two separate junctions tables, one for
windows and one for all the other parts?
to the Models table (Model_ID), SupplyParts table (SupplyPart_ID), and the
Suppliers table (Supplier_ID). I have just created a new junction table
called temporarily called Windows. This table contains the same 3 FKs, but
it also has three additional attributes that apply for only the windows. Is
good database design or should there only be one junction table? Now if
there is only one junction table, about 90% of the entries will be empty for
those three fields.
I originally thought that having two tables was the best idea, and then
copying the data if the record contained window data to the other table.
Would the best approach be to have two separate junctions tables, one for
windows and one for all the other parts?