bballhermit
Registered User.
- Local time
- Today, 06:20
- Joined
- Oct 14, 2010
- Messages
- 40
I have a situation where I have a table for employee information with a key ID for each employee as well as a table for subcontracting companies each with a key ID. I have a table with Assignments which assigns either an employee or a subcontracting company to a specific amount of hours in a specific month on a certain project.
Is there a way to make each record in the Assignments table require one and only one of either a subcontractor ID or an employee ID? What is the best way to implement this functionality? How then do I write a query that, assuming a given project and year, will list all of the subcontractors and employees on that project? Thanks.
Is there a way to make each record in the Assignments table require one and only one of either a subcontractor ID or an employee ID? What is the best way to implement this functionality? How then do I write a query that, assuming a given project and year, will list all of the subcontractors and employees on that project? Thanks.