Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

employee - client relationship

Status
Not open for further replies.

p27br

Programmer
Aug 13, 2001
516
GB
hello,

i have an employee table with employee id as primary key and a function field, and a client table with 3 foreign keys (helpdesk employee, account manager, production employee), so each client has these 3 employee types assigned.
In the relationships window , I have 3 times the employees table with each a one to many relationship to the client table.
To represent hte fact that for example an account manager cannott be assigned in the helpdesk employee field, I defined a query as row source in the foreign key field. Is this the correct way to represent this kind of relationships or should I create three distinct employees tables ?
 
An employee is just an employee, whether managing director or cleaning maid.

One 'entity'= one table

And remember that positions/qualifications change over time. If you have three tables, you'll have to move data from one to another...

So: keep all of them in ONE table.



[pipe]
Daniel Vlas
Systems Consultant

 
heh.

==
Jeremy Wallace
AlphaBet City Dataworks
Affordable Development, Professionally Done

Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
 
Dan,

Sorry. I knew that was gonna be unclear as soon as I posted it. It wasn't meant as a victory dance. My brother uses that to indicate a chuckle. Yes, it's a very different set of circumstances, but my immediate reaction was a little chuckle. It was meant to be an inside joke between you and me--only problem is that I'm the only one who got it.

As I implied in the other thread, I have tons of respect for you, and I agree with most everything I've seen you post here, including this.

Sorry for the confusion, it was meant to be a friendly gesture.

Jeremy

==
Jeremy Wallace
AlphaBet City Dataworks
Affordable Development, Professionally Done

Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
 
Good to see so much good advice re relationships readily offered to newbies. I wonder if this one will also get to 17 replies.

Just a thought: If we assume that a helpdesk employee may one day get to be an account manager, the two posts are'nt really all that different in concept.

Cheers

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top