Firstly I apologize if this is so simple that I should know but it is a recurring design flow that is seen in many databases and I don’t want this one to be the same…
Table1 has a field that is a possible link to Table2 but Table1 will not always need/have the FK from Table2 and therefore cannot have a foreign key constraint. How should this be handled?
My thoughts… have a Boolean (bit) that could be true/false and tested, but if this is correct then what, do I include the FK or not?
Any help appreciated.
Age is a consequence of experience
Table1 has a field that is a possible link to Table2 but Table1 will not always need/have the FK from Table2 and therefore cannot have a foreign key constraint. How should this be handled?
My thoughts… have a Boolean (bit) that could be true/false and tested, but if this is correct then what, do I include the FK or not?
Any help appreciated.
Age is a consequence of experience