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 > need some design suggestions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-19-10, 18:34
JacobClark JacobClark is offline
Registered User
 
Join Date: Apr 2010
Posts: 1
need some design suggestions

I am attempting to create a database to recommend parts needed by model. My main issue is the the same part could be used in one or more models. Ie.. one part may be used in just one model while another may be used in twenty different models. I am no dba but I have been tasked with creating this tool. So I am at a loss as to how to do this.

I am using mysql. I have tried the following but do not feel that is the most efficient.

Table One
Part Number (PK)
Description
Notes

Table Two
ID/Line Number (PK)
Part Number (FK)
Model

This works but is a nightmare to maintain and input. Hoping someone can point me to a better solution.
Reply With Quote
  #2 (permalink)  
Old 04-20-10, 06:54
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Table One
Part Number (PK)
Description
Notes

Table Two
Model Part Number PK(FK)
Part Part Number PK(FK)
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 04-20-10, 11:19
kitaman kitaman is offline
Papabi's friend
 
Join Date: Sep 2009
Location: Ontario
Posts: 626
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