T
TeeSee
The following was a suggestion as to how to properly set up tables
utilizing a "linking" table = tblCompanyContacts. I can see the
obvious linking but am totally at a loss as to what the logic would be
in obtaining just the contacts for each specific company. I can get
the result I want using just the two tables Company and Contact with a
fkCompany in the contacts table, but I DO want to understand the
concept of the three tables. Help appreciated always.
Companies
CompanyID <primary key>
<name, contact information, identifying information for the
company>
Contacts
ContactID <primary key>
<Name etc identifying information for the
contact>
CompanyContacts
CompanyID <field 1 of two-field primary key>
ContactID <field 2 of two-field primary key>
<maybe other fields pertaining to THIS Company with THIS contact>
utilizing a "linking" table = tblCompanyContacts. I can see the
obvious linking but am totally at a loss as to what the logic would be
in obtaining just the contacts for each specific company. I can get
the result I want using just the two tables Company and Contact with a
fkCompany in the contacts table, but I DO want to understand the
concept of the three tables. Help appreciated always.
Companies
CompanyID <primary key>
<name, contact information, identifying information for the
company>
Contacts
ContactID <primary key>
<Name etc identifying information for the
contact>
CompanyContacts
CompanyID <field 1 of two-field primary key>
ContactID <field 2 of two-field primary key>
<maybe other fields pertaining to THIS Company with THIS contact>