I have a piece of work to do setting up a database for a small enterprise.
Currently I have 5 tables set up:
- Customers
- Accounts
- Associations
- Security(Collateral)
- References (Reference Codes relating to a Job type)
One of the tasks I have is to create an association table that will link to the Customers table and show the association between 2 customers.
Columns for Association table:
- AssociationID
- Customer1
- AssociationType
- Customer2
The output should be "Customer1 is AssocationType of Customer2" eg "Dave is Accountant for Jim"
How do I set it up so that Customer1 & Customer2 are from the Customer's table? I think it might be with Foreign Keys but I am unsure.