473,473 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Contact database

I am creating a contacts db for about 100+ people and I wiss to follow
normalization rules.
How would you suggest handling multiple addresses (home,
vacation,email, etc.) and phone numbers (landline,fax,mobile, work,
etc) ?

How would I handle spouses and there children ?

I tried a rough sketch of possible tables below.

Table1
FamilyID
IndividualID
AddressID
PhoneID
FName
LastName

Table2
PhoneTypeID
PhoneType (Landline,work, etc)

Table3
PhoneID
PhoneTypeID
PhoneNumner

Table4
EmailTypeID
EmailType (Work, Personal1,Personal2, etc.)

Table5
IndvidualID
PhoneID
PhomeTypeID

Table6
FamilyID
FamilyName

Aug 28 '06 #1
5 1875
I think you can get rid fo Table 5, it seems redundant.

I would just add a table with Individual ID (or FamilyID, depending on
how your data actually works), AddressID and PhoneID. You should be
able to link everything else the way you have your database set up.

Table 1 needs some work, you're going to have multiple entries there
that you can avoid. Just use FamilyID, IndividualID, FName and LName.
You can link the phone number and address to the individual via the new
table mentioned above.
po*******@gmail.com wrote:
I am creating a contacts db for about 100+ people and I wiss to follow
normalization rules.
How would you suggest handling multiple addresses (home,
vacation,email, etc.) and phone numbers (landline,fax,mobile, work,
etc) ?

How would I handle spouses and there children ?

I tried a rough sketch of possible tables below.

Table1
FamilyID
IndividualID
AddressID
PhoneID
FName
LastName

Table2
PhoneTypeID
PhoneType (Landline,work, etc)

Table3
PhoneID
PhoneTypeID
PhoneNumner

Table4
EmailTypeID
EmailType (Work, Personal1,Personal2, etc.)

Table5
IndvidualID
PhoneID
PhomeTypeID

Table6
FamilyID
FamilyName
Aug 28 '06 #2
Just a personal pet-peeve:
In tables like Table2 and Table4, why have an AutoNumber on a field
that should be unique? Why not just:

Table2:
PhoneType (PK)
Table4:
EmailType (PK)

This way you are avoiding having to include the reference table every
time you want to find out the PhoneTypeID 1 is Home.
Chris Nebinger


ManningFan wrote:
I think you can get rid fo Table 5, it seems redundant.

I would just add a table with Individual ID (or FamilyID, depending on
how your data actually works), AddressID and PhoneID. You should be
able to link everything else the way you have your database set up.

Table 1 needs some work, you're going to have multiple entries there
that you can avoid. Just use FamilyID, IndividualID, FName and LName.
You can link the phone number and address to the individual via the new
table mentioned above.
po*******@gmail.com wrote:
I am creating a contacts db for about 100+ people and I wiss to follow
normalization rules.
How would you suggest handling multiple addresses (home,
vacation,email, etc.) and phone numbers (landline,fax,mobile, work,
etc) ?

How would I handle spouses and there children ?

I tried a rough sketch of possible tables below.

Table1
FamilyID
IndividualID
AddressID
PhoneID
FName
LastName

Table2
PhoneTypeID
PhoneType (Landline,work, etc)

Table3
PhoneID
PhoneTypeID
PhoneNumner

Table4
EmailTypeID
EmailType (Work, Personal1,Personal2, etc.)

Table5
IndvidualID
PhoneID
PhomeTypeID

Table6
FamilyID
FamilyName
Aug 28 '06 #3
I saw that but I let it slide, because some people feel more
comfortable with descriptive IDs (i.e. H for Home, W for Work, C for
Cell Phone, etc...). If you're looking at raw data and just one table
it makes it so you don't have to bring in the other table to figure out
what the code is.

It's one of those "To each his own" things I guess...

ch************@gmail.com wrote:
Just a personal pet-peeve:
In tables like Table2 and Table4, why have an AutoNumber on a field
that should be unique? Why not just:

Table2:
PhoneType (PK)
Table4:
EmailType (PK)

This way you are avoiding having to include the reference table every
time you want to find out the PhoneTypeID 1 is Home.
Chris Nebinger


ManningFan wrote:
I think you can get rid fo Table 5, it seems redundant.

I would just add a table with Individual ID (or FamilyID, depending on
how your data actually works), AddressID and PhoneID. You should be
able to link everything else the way you have your database set up.

Table 1 needs some work, you're going to have multiple entries there
that you can avoid. Just use FamilyID, IndividualID, FName and LName.
You can link the phone number and address to the individual via the new
table mentioned above.
po*******@gmail.com wrote:
I am creating a contacts db for about 100+ people and I wiss to follow
normalization rules.
How would you suggest handling multiple addresses (home,
vacation,email, etc.) and phone numbers (landline,fax,mobile, work,
etc) ?
>
How would I handle spouses and there children ?
>
I tried a rough sketch of possible tables below.
>
Table1
FamilyID
IndividualID
AddressID
PhoneID
FName
LastName
>
Table2
PhoneTypeID
PhoneType (Landline,work, etc)
>
Table3
PhoneID
PhoneTypeID
PhoneNumner
>
Table4
EmailTypeID
EmailType (Work, Personal1,Personal2, etc.)
>
Table5
IndvidualID
PhoneID
PhomeTypeID
>
Table6
FamilyID
FamilyName
Aug 28 '06 #4
I just shudder when I see the PhoneTypeID field. I think of
AutoNumbers, then sending it out to two different people. One adds
Home, then Work (1 is home, 2 is work), the other adds Work then Home
(1 is work, 2 is home). The data then gets consolidated, and everyone
is complaining that the data is corrupt.

I hate autonumbers, and only use them when no other field is unique.
Chris Nebinger

ManningFan wrote:
I saw that but I let it slide, because some people feel more
comfortable with descriptive IDs (i.e. H for Home, W for Work, C for
Cell Phone, etc...). If you're looking at raw data and just one table
it makes it so you don't have to bring in the other table to figure out
what the code is.

It's one of those "To each his own" things I guess...

ch************@gmail.com wrote:
Just a personal pet-peeve:
In tables like Table2 and Table4, why have an AutoNumber on a field
that should be unique? Why not just:

Table2:
PhoneType (PK)
Table4:
EmailType (PK)

This way you are avoiding having to include the reference table every
time you want to find out the PhoneTypeID 1 is Home.
Chris Nebinger


ManningFan wrote:
I think you can get rid fo Table 5, it seems redundant.
>
I would just add a table with Individual ID (or FamilyID, depending on
how your data actually works), AddressID and PhoneID. You should be
able to link everything else the way you have your database set up.
>
Table 1 needs some work, you're going to have multiple entries there
that you can avoid. Just use FamilyID, IndividualID, FName and LName.
You can link the phone number and address to the individual via the new
table mentioned above.
>
>
po*******@gmail.com wrote:
I am creating a contacts db for about 100+ people and I wiss to follow
normalization rules.
How would you suggest handling multiple addresses (home,
vacation,email, etc.) and phone numbers (landline,fax,mobile, work,
etc) ?

How would I handle spouses and there children ?

I tried a rough sketch of possible tables below.

Table1
FamilyID
IndividualID
AddressID
PhoneID
FName
LastName

Table2
PhoneTypeID
PhoneType (Landline,work, etc)

Table3
PhoneID
PhoneTypeID
PhoneNumner

Table4
EmailTypeID
EmailType (Work, Personal1,Personal2, etc.)

Table5
IndvidualID
PhoneID
PhomeTypeID

Table6
FamilyID
FamilyName
Aug 28 '06 #5
I use the following, which allow unlimited references between contacts and
unlimited address and types of address per contact.

tblContact Primary contact list
ContactID PK
FirstName
LastName
Type (Person, Company ect)
....

tblContactLink Link together contacts from tblContact
ContactID FK
ContactID2 FK
Type (Self, Child, Work, Club ect)

tblContactAddress Primary address table
AddressID PK
ContactID FK
Type (Phone, Street, PO, email etc)
Location (Home, Work ect)
AddressInfo
....

<po*******@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
I am creating a contacts db for about 100+ people and I wiss to follow
normalization rules.
How would you suggest handling multiple addresses (home,
vacation,email, etc.) and phone numbers (landline,fax,mobile, work,
etc) ?

How would I handle spouses and there children ?

I tried a rough sketch of possible tables below.

Table1
FamilyID
IndividualID
AddressID
PhoneID
FName
LastName

Table2
PhoneTypeID
PhoneType (Landline,work, etc)

Table3
PhoneID
PhoneTypeID
PhoneNumner

Table4
EmailTypeID
EmailType (Work, Personal1,Personal2, etc.)

Table5
IndvidualID
PhoneID
PhomeTypeID

Table6
FamilyID
FamilyName

Aug 29 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: SteveD | last post by:
My database contains three tables. 1. A table of state contacts, 2. regional contacts, and 3. Application information. tblApplicationInformation includes the following fields ,,, and . I need...
20
by: wolftor | last post by:
Would anyone be willing to beta test my application for me and give me some feedback? I can give you feedback in exchange (ie. if there are parts you're interested in knowing how it was done) or I...
1
by: Davef | last post by:
Scenario: I keep all the sales in a table with an id to a contact table, but if I delete the contact, the sales information is wrong. What is the best way to do this? -- ...
1
by: Graham McDowell | last post by:
Hi Guys I just found this forum by chance whilst trying to find an answer to my question so I hope it's OK to just come on here and ask a question? I want to start using a simple contact...
1
by: rjbonn | last post by:
I'm setting up a contact list for a musician, who is about to release her first CD. She would like a contact list that can track the people she meets, who will be in various categories -- fans,...
0
by: Robert J. Bonn | last post by:
I am setting up a contact list for a musician, who is about to release her first CD. She would like a contact list that can track all the people she meets, who will be in various categories --...
0
by: kammaldeep | last post by:
hi, i m newbie 2 PHP & to b frank ... will alwaz be ... i dont think i will go into much details with PHP as my work doesnot include workin with PHP bt i have a forum .. and i want to make a...
2
by: chutney | last post by:
Dear all, please excuse the fact that this is not an explicit problem I have, but more of a general query. I have an Access database (2003) with a load of contact details in it. Including various...
8
by: chromis | last post by:
Hi, I'm writing a contacts section for a cms on a website, I've decided to write the section in OO code. So far I have my Contacts object and a page structure I would use for a procedural site. ...
12
by: =?Utf-8?B?ZGdvdw==?= | last post by:
I designed a "contact_us" page in visual web developer 2005 express along with EW2 after viewing tutorials on asp.net's help page. Features work like they should, but I cannot figure out how to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.