G
Guest
I am currently working on a database for an organisation that deals both with
individuals and families. I am particularly struggling with how to organise
the relationships between tables when it comes to coordinating information
about families.
I am assuming that each individual on the database has their own record
irrespective of whether they are married or single, and adult or a child.
I am planning to split the information up into a number of small tables.
To enter and display data I am planning to have one main form with multiple
pages – each page loosely associated with each table.
Provisional Tables and Fields:
Personal Details
-Personal ID (Pri Key)
-Title
-First Name
-Surname
-Birth Date
-Gender
-Notes
-Name for Letter Address (e.g. Mr J. Doe)
-Salutation for Letter (e.g. Dear John / Dear Mr Doe)
-Mobile Phone (it seems to me that this relates to the individual not the
family)
-Work Phone (it seems to me that this relates to the individual not the
family)
-Email (it seems to me that this relates to the individual not the family)
-Email 2 (it seems to me that this relates to the individual not the family)
Contact Details
-Contact ID (Pri Key)
-Address 1
-Address 2
-Area
-City
-Postcode
-Country
-Home Phone (it seems to me that this relates to the family not the
individual)
-etc
Organisation Involvement
-Organisation ID (Pri Key)
-Activity x
-Activity y
-Activity z
-etc
Family Details
-Family ID (PriKey)
- Spouse
-Child 1
-Child 2
-Child 3
-Child 4
-etc
I guess there will need to be another table to facilitate the many to many
relationships?
Relationships
The relationships are quite complicated. If the basic building block is a
family - parents (2 parents) and children (possibly many children?) have a
many to many relationship. A family has one main contact address but many
members. Each family member has separate involvement in activities 1
individal may be involved in many activities and so on.
The complicating factors are that:
• Families of people do not have part numbers so the ID / primary key to the
different tables must, if possible, be hidden.
• Some families will only have one parent associated – usually the mother
but sometimes the father
• The last names (surnames / family names) of the family may differ: parent
- parent, parent/s - child and child/ren - child/ren
• There may be unrelated people who have the same surname
• Single people may have no other family (it is important that the db does
not make a person with a family appear more important)
• A cell phone / email address may be shared by a husband and wife or it may
reach only one of them
It is necessary in a search to be able:
• When finding a parent of either gender to be able to identity the children
and find their ages
• When searching for a child to be able to find the parent and the parent’s
contact details
• To be able to: write to / phone / email everyone who:
o Has a certain surname
o Is Female / male
o Is involved in activity x or activity y / activity x and activity y
o Has children / no children
o Is married / not married
o Is under 18 / over 18
Does anyone have any better ideas of how to organise the data
Does anyone have any tips on how to make the tables relate?
Thnaks for your help
individuals and families. I am particularly struggling with how to organise
the relationships between tables when it comes to coordinating information
about families.
I am assuming that each individual on the database has their own record
irrespective of whether they are married or single, and adult or a child.
I am planning to split the information up into a number of small tables.
To enter and display data I am planning to have one main form with multiple
pages – each page loosely associated with each table.
Provisional Tables and Fields:
Personal Details
-Personal ID (Pri Key)
-Title
-First Name
-Surname
-Birth Date
-Gender
-Notes
-Name for Letter Address (e.g. Mr J. Doe)
-Salutation for Letter (e.g. Dear John / Dear Mr Doe)
-Mobile Phone (it seems to me that this relates to the individual not the
family)
-Work Phone (it seems to me that this relates to the individual not the
family)
-Email (it seems to me that this relates to the individual not the family)
-Email 2 (it seems to me that this relates to the individual not the family)
Contact Details
-Contact ID (Pri Key)
-Address 1
-Address 2
-Area
-City
-Postcode
-Country
-Home Phone (it seems to me that this relates to the family not the
individual)
-etc
Organisation Involvement
-Organisation ID (Pri Key)
-Activity x
-Activity y
-Activity z
-etc
Family Details
-Family ID (PriKey)
- Spouse
-Child 1
-Child 2
-Child 3
-Child 4
-etc
I guess there will need to be another table to facilitate the many to many
relationships?
Relationships
The relationships are quite complicated. If the basic building block is a
family - parents (2 parents) and children (possibly many children?) have a
many to many relationship. A family has one main contact address but many
members. Each family member has separate involvement in activities 1
individal may be involved in many activities and so on.
The complicating factors are that:
• Families of people do not have part numbers so the ID / primary key to the
different tables must, if possible, be hidden.
• Some families will only have one parent associated – usually the mother
but sometimes the father
• The last names (surnames / family names) of the family may differ: parent
- parent, parent/s - child and child/ren - child/ren
• There may be unrelated people who have the same surname
• Single people may have no other family (it is important that the db does
not make a person with a family appear more important)
• A cell phone / email address may be shared by a husband and wife or it may
reach only one of them
It is necessary in a search to be able:
• When finding a parent of either gender to be able to identity the children
and find their ages
• When searching for a child to be able to find the parent and the parent’s
contact details
• To be able to: write to / phone / email everyone who:
o Has a certain surname
o Is Female / male
o Is involved in activity x or activity y / activity x and activity y
o Has children / no children
o Is married / not married
o Is under 18 / over 18
Does anyone have any better ideas of how to organise the data
Does anyone have any tips on how to make the tables relate?
Thnaks for your help