Table design advise
Date: 14 Nov 2005 10:24:03 -0800
Message-ID: <1131992643.669233.39770_at_o13g2000cwo.googlegroups.com>
Hi
- STUDENT has a foreign key from EMPLOYER.
- STUDENT has a foreign key from TUTOR
- SUPERVISOR has a foreign key from EMPLOYER
This presents me with the following problems:
- When assigning an EMPLOYER to a STUDENT, it's not possible to define
a SUPERVISOR for a particular STUDENT - effectively I'd have to have
multiple entries for the same employer in the EMPLOYER table for each
SUPERVISOR. This makes me think the EMPLOYER should have a foreign key
from SUPERVISOR. Even still, this still means I can't associate a
SUPERVISOR to a STUDENT for a particular EMPLOYER!!!!
I'm really confused. Maybe I should have a relation from STUDENT directly to SUPERVISOR - but somehow it shouldn't be possible to select one that isn't assigned to there employer. Maybe I should code up a trigger to implement this.
Any ideas?
Thanks in advance
Regards
DJW
Received on Mon Nov 14 2005 - 19:24:03 CET