If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Database Design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-13-06, 22:33
Dominican79 Dominican79 is offline
Registered User
 
Join Date: Mar 2006
Posts: 6
Question Database Design

Hello everyone, hope someone can help me with what I am trying to do. Here you go: I work at a company that provides support IP telephony support to clients. I need to create a database to keep track of our business partners and agreements in the USA. Here are the things we have to keep track of, and the entities I've come up with:

Partner_Agreenement
Partner
Partner_Contact
Partner_Location
Client
Client_Contact
Client_Location
Vendor
Vendor_Contact
Vendor_Location
Vendor_Product

Now here is my challenge, the Partner, Client, and Vendor entities all have Contact and Location in common, meaning that a Partner can be in many locations around the USA as well as the Client and Vendor. How would I go about implementing the relationships and dividing the entities in the ER Diagram. Should I create a single entit called Contact and another called Location and then use all the foreign keys from the Partner, Client and Vendor tables into the Contact and Location, or should I have different contact and location tables for the respective partner, client and vendor like I described above, Or should I use entity types and subtypes, and how do I implement them? I have to run reports from this database that answer questions such as: 1) show all the partners, clients, and vendors that are in Texas 2) What partners can support Vendor_Product xyz for a client in Arizona? for this last questions I should be able to look at the client's location and find out what partners are around the area that can service the client. I know this is kinda long, but hope someone has the time to give me some insight on this, I would greatly appreciate it. Thanks!
Reply With Quote
  #2 (permalink)  
Old 03-13-06, 22:58
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
boy oh boy oh boy does that ever sound like a homework assignment
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-13-06, 23:16
Dominican79 Dominican79 is offline
Registered User
 
Join Date: Mar 2006
Posts: 6
heheh yeah it does, but i'm not a database designer
Reply With Quote
  #4 (permalink)  
Old 03-14-06, 00:35
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Quote:
Originally Posted by Dominican79
heheh yeah it does, but i'm not a database designer
At least we assume that is why you're taking the class... In order to become one. If we do your homework from the get-go, you'll be no better off than you are now.

If you take a shot at doing the assignment, then ask for confirmation of your choices or pointers on specific points, then I suspect that you'll find a much more positive reaction.

-PatP
Reply With Quote
  #5 (permalink)  
Old 03-14-06, 01:18
Dominican79 Dominican79 is offline
Registered User
 
Join Date: Mar 2006
Posts: 6
I am not taking a database class, I'm done with school, have taken 2 database classes during school, but haven't dealt with databases in a while. All I am asking is, what do you thik is the best Idea, to have one general entity like location and have foreign keys from vendor, partner and client stored in that table and have a bunch of null values or create 3 different entities vendor_location, client_location, partner_location.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On