Re: confusing relationships
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Wed, 22 Mar 2006 14:10:33 +0800
Not sure I would use separate tables for contact, spouse, and child.
It seems to me that these are people who could have policies in their own
right, so it makes more sense to me to put all the people in a single table
with a ClientID primary key. Your Insurance table would then contain foreign
keys for:
PolicyHolderID relates to Client.ClientID
Spouse relates to another record in Client table.
...
If one person has multiple policies, it might make sense to just have the
PolicyHolderID foreign key field in the Insurance table, and have all the
other family information in a different table. For a downloadable example of
how that might work, see:
People in households and companies - Modelling human relationships
at:
http://allenbrowne.com/AppHuman.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"kingnothing via AccessMonster.com" <u18754@uwe> wrote in message
news:5d9ec64a4bb43@xxxxxx
Hi All,
Firstly thank you for helping me with the initial hurdle of how to set up
a
DSN etc. Now i have done that successfully and am in the process of
designing
a database. I seem to have been stuck in a place i cant get out of.
The situation is like this..
Tables
---------
A contact table - Usual stuff here
An Insurance Table - All Insurance details
Spouse Table - Info about spouse
Child table - Child Info
Requirements
------
contact can have multiple insurances, children and spouses..
Each Child can have multiple insurances
Each spouse can have multiple insurances
Contact is the primary table....with insurance, spouse and child tables
linked in 1 - many relationships
Relationships
-------
Contact linked to Insurance with Contact ID (Primary key) and Foreign key
in
Insurance 1-many
Contact linked to Spouse with Contact ID (Primary key) and Foreign key in
Spouse 1-many
Contact linked to child with Contact ID (Primary key) and Foreign key in
Child 1-many
Simillarly Spouse and Child are linked to Insurance with Spouse ID , Child
ID
and Foreign key with 1-many
The problem.....I dont know if this is the right way of doing it??
Can someone please advice me on this...
Regards,
kingnothing
.
- Follow-Ups:
- Re: confusing relationships
- From: kingnothing via AccessMonster.com
- Re: confusing relationships
- From: Vincent Johns
- Re: confusing relationships
- References:
- confusing relationships
- From: kingnothing via AccessMonster.com
- confusing relationships
- Prev by Date: confusing relationships
- Next by Date: Re: confusing relationships
- Previous by thread: confusing relationships
- Next by thread: Re: confusing relationships
- Index(es):
Relevant Pages
|