G
Guest
I obviously do not understand referential integrity.
I have three tables:
Email
Employee
Training
The Email table has a master list of all employee e-mail addresses.
The Employee uses the e-mail address as its key.
The Training table uses the e-mail address from the Employee table as one of
its fields.
The relationship between Email and Employee tables enforces referential
integrity.
The relationship between Employee and Training tables enforeces referential
integrity.
I desire to change someone's e-mail address in the database. It was my
thought, obviously incorrect, that with referential integrity, I would change
the address in the Email table and it would flow through all the related
tables. That isn't the case.
The way I have things configured, I cannot change an employee's e-mail
address. I know I can temporarily delete the integrity, make the change,
change all instances, and then put the integrity back in. But that obviously
is not how it is supposed to be done.
So, where have I gone wrong? What do I need to do to have a change flow
throughout all related tables?
I appreciate any help you can offer.
I have three tables:
Employee
Training
The Email table has a master list of all employee e-mail addresses.
The Employee uses the e-mail address as its key.
The Training table uses the e-mail address from the Employee table as one of
its fields.
The relationship between Email and Employee tables enforces referential
integrity.
The relationship between Employee and Training tables enforeces referential
integrity.
I desire to change someone's e-mail address in the database. It was my
thought, obviously incorrect, that with referential integrity, I would change
the address in the Email table and it would flow through all the related
tables. That isn't the case.
The way I have things configured, I cannot change an employee's e-mail
address. I know I can temporarily delete the integrity, make the change,
change all instances, and then put the integrity back in. But that obviously
is not how it is supposed to be done.
So, where have I gone wrong? What do I need to do to have a change flow
throughout all related tables?
I appreciate any help you can offer.