Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 1st, 2003, 11:31 PM
devious_05 devious_05 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Victoria Australia
Posts: 26 devious_05 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Knowledge Base Database

Im designing a database for information for my company(currently in Access). It will contain all the services thecompnay provides and the contacts for each service essentially a knowledge base. Its mainly to be used in the call centre to know where to place calls.

I have a Service table and a contact table.
Service table has serviceID, serviceName, Description, DivisionName as attributes
Contacts table has contactID,firstName,lastName, phoneNumber,jobTitle,emailAddress and a few others.

The problem I have is that there can be more than 1 contact for each service and each contact can be responsible for multiple services (ie I have a many-to-many relationship)

Can anyone suggest a structure for optimality that would allow me to search the database(using PHP) easily to find out all the contacts for each service?

Im guessing I need to create another table say ServiceContact containing the primary key, serviceID and contactID. Is that correct?

Unfortunately Im being asked to create this database now and not next semester when I actually do a DBMS course at uni. Its annoying but I have to live with it!

Thanks in advance

Jenna

Reply With Quote
  #2  
Old July 3rd, 2003, 11:57 PM
lisa25 lisa25 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: India
Posts: 14 lisa25 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 48 sec
Reputation Power: 0
i think at this moment when u r working in Access it would be best to make another table, as u have mentioned, ServiceContact which will map serviceID and contactID. This will solve ur many-to-many relationship problem.
lisa

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Knowledge Base Database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway