Hi, I hope you're well. I'm new to these forums and have an issue I hope you can help me with.
Suppose you have 2 tables:
Each employee can sell to many customers, each customer can purchase from many employees. A junction table can be used to represent each transaction:
Herein lies my problem. With a normal table, I would have made a child table with a FK and a Note field. But there's no single PK for the junction table. Do I keep a lot of empty fields, and break normalisation rules, or is there anything else you can suggest?
Again, I would sincerely appreciate any help.
Edit: I forgot to mention, there's a form produced that would be used to record transactions. How would you advise for, or against, producing another junction table (jctEmployeeCustomerTransactionNotes: PK: EmployeeID, PK: CustomerID; EmployeeCustomerTransactionNote) and having a button on the form that, when clicked, produces a message box and runs an Append query, using VBA, to inject the note into the new junction table?
Suppose you have 2 tables:
- tblEmployee (PK: EmployeeID)
- tblCustomer (PK: CustomerID)
Each employee can sell to many customers, each customer can purchase from many employees. A junction table can be used to represent each transaction:
- jctEmployeeCustomer (PK: EmployeeID, PK: CustomerID; EmployeeCustomerTransactionAmount)
Herein lies my problem. With a normal table, I would have made a child table with a FK and a Note field. But there's no single PK for the junction table. Do I keep a lot of empty fields, and break normalisation rules, or is there anything else you can suggest?
Again, I would sincerely appreciate any help.
Edit: I forgot to mention, there's a form produced that would be used to record transactions. How would you advise for, or against, producing another junction table (jctEmployeeCustomerTransactionNotes: PK: EmployeeID, PK: CustomerID; EmployeeCustomerTransactionNote) and having a button on the form that, when clicked, produces a message box and runs an Append query, using VBA, to inject the note into the new junction table?