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 > Help with data model

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-05, 11:15
weewizard weewizard is offline
Registered User
 
Join Date: Jan 2005
Location: UK - Teesside
Posts: 2
data model problem

Hi there everyone, happy new year.

Okay I am in the process of crerating a database using the standard database design method.

I have created a model but as this is the first time I have tried this im unsure if it is okay.

I know a model changes throughout the design process, but I need some expert advice to see if it is okay or any suggestions as how it can be improved.

I have attatced the model and also a brief scenario of the problem

Any help greatley appreciated

Best Regards
Richard Howells

HTML Code:
<img src="http://www.richard-howells.co.uk/model.gif">
Attached Images
File Type: gif model.gif (25.7 KB, 53 views)
Attached Files
File Type: doc scenario.doc (27.5 KB, 60 views)

Last edited by weewizard; 01-04-05 at 14:50. Reason: title change
Reply With Quote
  #2 (permalink)  
Old 01-04-05, 23:15
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
you are apparently assigning surrogate keys customer_product_id and customer_interest_id

i wouldn't, i'd make the PK consist of the composite FKs to each respective parent entity

also, there's an extra table between customer and product_type, one o' them has to go

customer-product_type is many-to-many, so there would be only the one relationship table between them
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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