I have a table Person and Address. A person can have several address records, so a simple connection 1 .. * with the address has a field that refers to the "Identifier".
Now for this Person, I want to define their "default" or "primary" Address.
I came up with two ideas, but I'm also not sure. Before I decide if anyone can suggest any comments regarding potential issues that I might encounter in turn with any option ...
(but). May have a "Default Address Identifier" for a Person that will store the ID of the default address entry. A possible mistake here is that an address that does not belong to this Person can be set here, therefore, to prevent this, an additional restriction on verification will be required.
(b) It may have the “Default” flag in the Address table, but this has the ability to allow multiple selection, so further verification is required so that when the flag is set, it will also clear all records belonging to the same Person.
Any
Gavin
source share