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 > ERD Opinion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-05, 17:10
krz krz is offline
Registered User
 
Join Date: Nov 2004
Posts: 25
ERD Opinion

Hello,

Screenshot: http://imagebin.org/3504

Im trying to normalise my tables. ive come up with the screenshot (mentioned above). Ive gone from design #1 to design #2.

Any suggestions for improvements will be much appreciated.

Furthermore, Im finding it much more convenient having design #1 instead of #2 (i.e. less tables, less confusion).

Regards,

Krz
Reply With Quote
  #2 (permalink)  
Old 09-30-05, 17:24
krz krz is offline
Registered User
 
Join Date: Nov 2004
Posts: 25
I updated it to: http://imagebin.org/3505

Please have a look and provide feeback.
Reply With Quote
  #3 (permalink)  
Old 10-01-05, 01:10
B Jarvis B Jarvis is offline
Registered User
 
Join Date: Sep 2005
Posts: 22
1 Why is the company id in product?
the link company to product is 1-M or M-M
If it is M-M here should be a link table company-product

2 Shouldn't beverage be the details of a particular product?
Hence why is company in beverage and why does beverage have a
key different to its product id?

3 A company can have more than one address and phone number.

4 You should investigate those text fields.


Hope this helps.
Bill
Reply With Quote
  #4 (permalink)  
Old 10-01-05, 13:37
krz krz is offline
Registered User
 
Join Date: Nov 2004
Posts: 25
B Jarvis,

compID is in the products table as a foreign key, because one company manufactures/has many products.

Relationship:
compID 1:M product
product 1:1 beverage
product 1:1 food

Beverage can be wines, sparkling and natural mineral water, juice, etc.
Food can be salami, cheese, spaghetti, etc.

What do you think?
Reply With Quote
  #5 (permalink)  
Old 10-01-05, 15:26
krz krz is offline
Registered User
 
Join Date: Nov 2004
Posts: 25
updated

I now updated it to: http://imagebin.org/3509
Reply With Quote
  #6 (permalink)  
Old 10-01-05, 18:38
krz krz is offline
Registered User
 
Join Date: Nov 2004
Posts: 25
updated again

Reply With Quote
  #7 (permalink)  
Old 10-02-05, 00:58
B Jarvis B Jarvis is offline
Registered User
 
Join Date: Sep 2005
Posts: 22
About the company and addresses
I was thinking that a company will have at least
a mail address (PO Box)
and a street address
and may have a separate warehouse address

Otherwise the company part is looking better

Really it is hard to say much about it because
what is stored in the lists depends on how it is to be used
Reply With Quote
  #8 (permalink)  
Old 10-03-05, 16:22
krz krz is offline
Registered User
 
Join Date: Nov 2004
Posts: 25
B jarvis

how else can I improve my products, food and beverage table?
Reply With Quote
  #9 (permalink)  
Old 10-03-05, 21:05
B Jarvis B Jarvis is offline
Registered User
 
Join Date: Sep 2005
Posts: 22
1 text is very indeterminate:
64k to say something that could be said in a couple of lines.
Consider what is going to go into those fields.

2 important information should be quantified (alcoholic content,warnings etc).

3 some of the fields for beverage apply to food as well.
Reply With Quote
  #10 (permalink)  
Old 10-04-05, 18:25
krz krz is offline
Registered User
 
Join Date: Nov 2004
Posts: 25
quantified, as in have their own tables?
Reply With Quote
  #11 (permalink)  
Old 10-04-05, 23:53
possum.pie possum.pie is offline
Registered User
 
Join Date: Oct 2005
Posts: 1
What software was used to generate the nice diagrams?
Reply With Quote
  #12 (permalink)  
Old 10-05-05, 20:27
B Jarvis B Jarvis is offline
Registered User
 
Join Date: Sep 2005
Posts: 22
No rather as in field alcoholic-content value 45 as in 45% by volume etc.

This way you have something you can set limits on.

Text has to be searched.

Bill
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