I am trying to write a component maintenance application and have
tables as follows
Part
Part #
Part Description
Active (y/N)
as these parts are obsoleted, ie Active changes to N, then I also have
a
Replacement table
Replacement
Part #
Replacement Part Number (FK from Part with Active =Y)
My problem is that if the status of Active in the Part Table
subsequently goes to N then the data in Replacement table is invalid.
How do I represent this dependence ? Because Active is only Y/N then I
cannot use it is as a secondary key . Any ideas ?
Thanks
Seamus
tables as follows
Part
Part #
Part Description
Active (y/N)
as these parts are obsoleted, ie Active changes to N, then I also have
a
Replacement table
Replacement
Part #
Replacement Part Number (FK from Part with Active =Y)
My problem is that if the status of Active in the Part Table
subsequently goes to N then the data in Replacement table is invalid.
How do I represent this dependence ? Because Active is only Y/N then I
cannot use it is as a secondary key . Any ideas ?
Thanks
Seamus
Comment