Hello - I am writing a database to record Properties and Tenants.
The property will, probably over several years, have several tenants.
I can either set the relationship as:
1. One (property) to Many (tenants)
or
2. Insert the Tenant ID as a link into the property table.
As i see it using a one to many will have the benefit of seeing which past tenants a property has etc.
However...
Inserting the Tenant ID into the table to form a link will ensure that only one tenant (hopefully the correct one) is linked and available to the user at any time (thus preventing the user from updating the wrong tenant record).
Which appraoch is likley to be the best?
Many thanks Mark
The property will, probably over several years, have several tenants.
I can either set the relationship as:
1. One (property) to Many (tenants)
or
2. Insert the Tenant ID as a link into the property table.
As i see it using a one to many will have the benefit of seeing which past tenants a property has etc.
However...
Inserting the Tenant ID into the table to form a link will ensure that only one tenant (hopefully the correct one) is linked and available to the user at any time (thus preventing the user from updating the wrong tenant record).
Which appraoch is likley to be the best?
Many thanks Mark