By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,098 Members | 1,881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,098 IT Pros & Developers. It's quick & easy.

Relationships in a database

P: n/a
I have a database consisting of employees and products. Each product gets
checked by 2 employees only. The tables look like this:

Employees:
EmployeeID
EmployeeName etc

Products:
ProductID
Product
Employee1ID
Employee2ID

My question: How do I create the relationship between the 2 tables, or do I
need to create a junction table or something similar.

Thanks
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ke***@ebucksmail.com wrote:
I have a database consisting of employees and products. Each product gets
checked by 2 employees only. The tables look like this:

Employees:
EmployeeID
EmployeeName etc

Products:
ProductID
Product
Employee1ID
Employee2ID

My question: How do I create the relationship between the 2 tables, or do I
need to create a junction table or something similar.

Create a junction table - its a many-to-many relationship: Many
employees can check many products.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.