J
Jerry Whittle
You need a third table named something like Min_Location to break up this
many-to-many relationship. This type of table is know as a joining, linking,
or bridging table. The table would have a minimum of two fields which would
be foriegn keys to the primary keys in the other table. For example:
COM_MIN_ID MINERAL_ID
123 1286
123 257
123 44
555 1286
The combination of these two fields should be a unique index to prevent
duplicates.
With the above table you could as questions both directions such as what is
at COM_MIN #123 and where can I find Gypsum. You could also do away with the
current Com_Min column.
many-to-many relationship. This type of table is know as a joining, linking,
or bridging table. The table would have a minimum of two fields which would
be foriegn keys to the primary keys in the other table. For example:
COM_MIN_ID MINERAL_ID
123 1286
123 257
123 44
555 1286
The combination of these two fields should be a unique index to prevent
duplicates.
With the above table you could as questions both directions such as what is
at COM_MIN #123 and where can I find Gypsum. You could also do away with the
current Com_Min column.