C
C Tate
I am a bit confused by my relationships and keys. Perhaps someone could help!
My database contains information about sites. The sites will contain houses.
I need to record information on the site, including who will develop it and
the name of the landowner.
Each site will probably just have one developer and one landowner. I want to
record name, address and contact for both.
I suppose it is possible that each developer could be responsible for
several sites (but most likely just one). I also suspect the same landowner
may own several sites, though not necessarily. Does this mean the site should
appear on the many side and developer and landowner on the one side? It is
feasible that a site could have more than one developer, though it is not
likely there will be more than one landowner.
I put the developerID in the site table as a foreign key. Do I also need to
put the site id in the developer table? I did the same thing for the
landowner (ie, put landowner id in the site table as a foreign key). But not
sure if the site id should also go in the landowner table.
It is important for me to get these correct. So far I don’t think they are.
And it is creating problems when I try to make a query for data entry.
Any advice gratefully received.
My database contains information about sites. The sites will contain houses.
I need to record information on the site, including who will develop it and
the name of the landowner.
Each site will probably just have one developer and one landowner. I want to
record name, address and contact for both.
I suppose it is possible that each developer could be responsible for
several sites (but most likely just one). I also suspect the same landowner
may own several sites, though not necessarily. Does this mean the site should
appear on the many side and developer and landowner on the one side? It is
feasible that a site could have more than one developer, though it is not
likely there will be more than one landowner.
I put the developerID in the site table as a foreign key. Do I also need to
put the site id in the developer table? I did the same thing for the
landowner (ie, put landowner id in the site table as a foreign key). But not
sure if the site id should also go in the landowner table.
It is important for me to get these correct. So far I don’t think they are.
And it is creating problems when I try to make a query for data entry.
Any advice gratefully received.