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

Home Posts Topics Members FAQ

Contact Table

106 New Member
I want to define a table called Contacts. I have two types of contacts, business hour contact and after hours contact.
I need suggestion on the following that which is efficient. Or if there are different ways let me know
1.
ContactID, BHContact, BH Mobile, BHPhone, BHEmail, AHContact, AHMobile, AHPhone, AHEmail.

2.
ContactID, Contact, Mobile, Phone, EMail, Type


Thanks
Nov 8 '06 #1
13 2794
tara99
106 New Member
I want to define a table called Contacts. I have two types of contacts, business hour contact and after hours contact.
I need suggestion on the following that which is efficient. Or if there are different ways let me know
1.
ContactID, BHContact, BH Mobile, BHPhone, BHEmail, AHContact, AHMobile, AHPhone, AHEmail.

2.
ContactID, Contact, Mobile, Phone, EMail, Type


Thanks
Any sugestion is welcomed
Nov 9 '06 #2
Killer42
8,435 Recognized Expert Expert
Any sugestion is welcomed
Be careful what you wish for... :)

But seriously, I imagine the more usual approach would be to have a table of contacts with a Type field, and then pull together on a form (or in a query) the ones which relate to the same person.

Now that I think about it, aren't there samples of contact tables in the distributed files? Or the new table wizard, or the help text? I forget where it was.
Nov 9 '06 #3
tara99
106 New Member
Be careful what you wish for... :)

But seriously, I imagine the more usual approach would be to have a table of contacts with a Type field, and then pull together on a form (or in a query) the ones which relate to the same person.

Now that I think about it, aren't there samples of contact tables in the distributed files? Or the new table wizard, or the help text? I forget where it was.
I will check the wizard,
with the contact that I have, one person can be BHcontact, or AHcontact, and also in my case the contact doesn't have to be a person it can be a site(location).
Nov 9 '06 #4
Killer42
8,435 Recognized Expert Expert
I will check the wizard,
with the contact that I have, one person can be BHcontact, or AHcontact, and also in my case the contact doesn't have to be a person it can be a site(location).
I suppose the best way to set it up is whatever works for you. I admit I'm useless when it comes to database design.

However, I was just trying to think of future flexibility - for instance, when in a year or two you come up with a third type of contact. If you have a table of contacts with a type field, and for example another table listing valid contact types and descriptions, this might be more easily expanded.

But it will be better if I step back and wait for someone with more design experience (or even just common sense) to take over. :)
Nov 9 '06 #5
tara99
106 New Member
I suppose the best way to set it up is whatever works for you. I admit I'm useless when it comes to database design.

However, I was just trying to think of future flexibility - for instance, when in a year or two you come up with a third type of contact. If you have a table of contacts with a type field, and for example another table listing valid contact types and descriptions, this might be more easily expanded.

But it will be better if I step back and wait for someone with more design experience (or even just common sense) to take over. :)
I wellcome any suggestion
Nov 10 '06 #6
NeoPa
32,556 Recognized Expert Moderator MVP
I was a little unclear as I thought table 1 was a general purpose contact table. It has fields for both Business Hours and Out of Office Hours.
Assuming though, for the moment, that it is not, then Killer is absolutely right. That is sound advice generally and following it will build in extra flexibility for the future, just as Killer says.
Nov 10 '06 #7
Killer42
8,435 Recognized Expert Expert
NeoPa, do you remember where that sample contact table is that I'm thinking of? It wasn't part of the NorthWind thing, was it? Wait a minute...

Ahah! Found it. If you say to create a new table in Access 2003 using the Table Wizard, the samples (at least on my system) are Mailing List, Contacts, Customers, Employees, Products, Orders, etc.

By the way tara99, but I should have read your original post more carefully - I see now that you listed two options, and one of them was exactly what I suggested. D'oh! :)
Nov 10 '06 #8
tara99
106 New Member
NeoPa, do you remember where that sample contact table is that I'm thinking of? It wasn't part of the NorthWind thing, was it? Wait a minute...

Ahah! Found it. If you say to create a new table in Access 2003 using the Table Wizard, the samples (at least on my system) are Mailing List, Contacts, Customers, Employees, Products, Orders, etc.

By the way tara99, but I should have read your original post more carefully - I see now that you listed two options, and one of them was exactly what I suggested. D'oh! :)
It it fine Killer24, i wasn't sure about it myself so I had to make sure.

thanks
Nov 10 '06 #9
tara99
106 New Member
NeoPa, do you remember where that sample contact table is that I'm thinking of? It wasn't part of the NorthWind thing, was it? Wait a minute...

Ahah! Found it. If you say to create a new table in Access 2003 using the Table Wizard, the samples (at least on my system) are Mailing List, Contacts, Customers, Employees, Products, Orders, etc.

By the way tara99, but I should have read your original post more carefully - I see now that you listed two options, and one of them was exactly what I suggested. D'oh! :)
It it fine Killer24, i wasn't sure about it myself so I had to make sure.
and the other thing that I am not sure if it make sence is that in some cases same contact name and phone number are for both type (Business Hour, After hour), so in this case what I have done is typed the information twice for both BH and AH.
Is this OK??

thanks
Nov 10 '06 #10
tara99
106 New Member
It it fine Killer24, i wasn't sure about it myself so I had to make sure.
and the other thing that I am not sure if it make sence is that in some cases same contact name and phone number are for both type (Business Hour, After hour), so in this case what I have done is typed the information twice for both BH and AH.
Is this OK??

thanks
I figured this out,
I can hve 3 contact Type (BH,AH,BH_AH) so if it is the same person for both BH and AH then I can choose type BH_AH.

thanks
Nov 10 '06 #11
Killer42
8,435 Recognized Expert Expert
I figured this out,
I can hve 3 contact Type (BH,AH,BH_AH) so if it is the same person for both BH and AH then I can choose type BH_AH.
thanks
Sounds good to me. However, I see no problem with storing the details twice (storing multiple copies like this is generally referred to as redundancy). Unless you have a strong reason for one method or the other, just go with whatever seems easiest. :)
Nov 10 '06 #12
NeoPa
32,556 Recognized Expert Moderator MVP
I would duplicate the data.
You will introduce logic problems processing the data if you go down the 'BH_AH' route.
Normal queries will always have to have
Expand|Select|Wrap|Line Numbers
  1. WHERE x='BH' OR x='BH_AH'
Nov 10 '06 #13
MMcCarthy
14,534 Recognized Expert Moderator MVP
I want to define a table called Contacts. I have two types of contacts, business hour contact and after hours contact.
I need suggestion on the following that which is efficient. Or if there are different ways let me know
1.
ContactID, BHContact, BH Mobile, BHPhone, BHEmail, AHContact, AHMobile, AHPhone, AHEmail.

2.
ContactID, Contact, Mobile, Phone, EMail, Type


Thanks
This was a good question Tara

Shows you're thinking about the logic of your table structures. Keep doing this and the designing will get a lot easier.

I think you got some good suggestions here. If you still have problems post back. Otherwise I'll catch you next time.

Mary
Nov 12 '06 #14

Sign in to post your reply or Sign up for a free account.

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...
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? -- ...
0
by: Benjamin Bittner | last post by:
Hallo NG, ive searched a lot in some google groups, and found many threads, but nothing that helped me. Here is the scenario: I have an aspx page which loads a user control in page.onInit like...
1
by: Robert J. Bonn | last post by:
I'm trying to set up a contact list in MS Access 97. I've looked through a reference book and the program's help screens, but the light bulb isn't quite coming on for me. If one of you could take...
1
by: Gurj | last post by:
Hi, this is my first post to this forum so thank you all in advance.. I am trying to design a database to store information about the Specification required by each customer. And the main problem...
4
by: thanos | last post by:
Hello, I'm relatively new to PHP so I found this free contact us script on the net that i was going to use for my Contact Us php page. Its works pretty good except for error handling. I was...
1
by: LeoK | last post by:
Hello everyone, currently I am building a database for a club in my school. I am at the point where I want to integrate Access with Outlook, this part of the development process has been giving me a...
2
rcollins
by: rcollins | last post by:
I have a report that gives me contact info for each client. We run these reports every month, ie, 4/1/2008-4/30/2008. As it is now we get the lients who have had contact for the month. What I would...
4
by: tokcy | last post by:
HI every one, i am using tooltip on click of link and i want like when that tooltip open then background window would be blure(). can anyone help me...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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.