954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Relationships

I'm trying to create a database to store product and customer information.
An item have many batch numbers (batch ID)
a batch number can only belong to one item

an item can be in many products
a product contains many items

an order can contain many products
a product can be in many orders

a customer can have many orders
an order can only be for one customer

from this information i have created the following relationships. http://postimage.org/image/2fva2x890/
Is this all correct?? i think the relationship between batch ID in tbl_batch is wrong??
Cheers in advance

gowans07
Light Poster
48 posts since Sep 2011
Reputation Points: 10
Solved Threads: 1
 

The relationships between Customer Order and OrderProduct is wrong.

The tbl_Order should have the CustomerId as a foreign key not tbl_Order_Product.

ChrisPadgham
Posting Pro in Training
413 posts since Sep 2009
Reputation Points: 102
Solved Threads: 78
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: