You can do this with the “Spouse” column in the “Person” table, which can be zero (for the case of an unmarried person).
If you are married, this contains the identifier of the other person as well as the foreign key.
The best solution would be a separate “Marriage” table, in which there are at least three columns:
MarriageId Person1Id Person2Id ...
The face ID is the foreign key in the Face table, and you must make a unique combination of the MarriageId, Person1Id, and Person2Id characteristics to avoid adding a row in which people swap places.
Although it should be noted that both of these models are quite simple and make assumptions about how many people can be in the same marriage;)
ChrisF Dec 07 '10 at 15:55 2010-12-07 15:55
source share