I have come across a question concerning Primary keys & Foreign keys in MS Access. I do have two tables, Customer and Sales.
Customer has three attributes:
CustomerID (short text which is my primary key),
FirstName (short text)
LastName (short text)
Sales has the following attributes:
SalesID (Number) is the Primary key
ProductID (number) should be a foreign key
CustomerID (short text) should be a foreign key
(...)
Now here is my problem: there can be duplicates of the CustomerID as they can buy several items. I cannot set the foreign key CustomerID in the Sales Table to the primary key CustomerID in the CustomerTable because there can be duplicates.
Do you have any ideas how to solve this problem?