943,948 Members | Top Members by Rank

Ad:
Apr 13th, 2008
0

ERD for Warehouse?

Expand Post »
Hi all, I am currently designing a database for a warehouse but I cannot get the ERD Wright. The entities which I am using are( Warehouse, order,customer, suppliers, products) these are my tables but after handing in my assignment, it has been returned to me and been tolled there is a table missing. The only thing which I could think of will be (Delivery) table but I am not sure. Any help will be deeply appreciated.

my Current ERD relationships as fallows:

Warehouse-> could have many -> orders
Warehouse -> could have many-> Suppliers
Suppliers -> could supply many-> Products
Orders -> could have many -> Product
Customer -> could have many -> Orders

I came up with these. hope someone could help me to get the ERD Wright for this assignment.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
HB25 is offline Offline
74 posts
since Dec 2007
Apr 15th, 2008
0

Re: ERD for Warehouse?

You need to provide requerements as above description is not valid
Last edited by peter_budo; Apr 15th, 2008 at 4:34 pm. Reason: Typo
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Apr 15th, 2008
0

Re: ERD for Warehouse?

Click to Expand / Collapse  Quote originally posted by peter_budo ...
You need to provide requerements as above description is not valid
Dear peter_budo
Thank you for your reply, please find attached my ERD diagram but I have been told that it should be another table named (Stock) but I am not sure whither that’s necessary or not.
Thanks for your help.
Attached Thumbnails
Click image for larger version

Name:	ERD.Gif
Views:	229
Size:	3.0 KB
ID:	5814  
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
HB25 is offline Offline
74 posts
since Dec 2007
Apr 15th, 2008
0

Re: ERD for Warehouse?

hi,
if you design an entity relationship model (ERM) there are only entities and relationships. There aren't any "tables" there. Once you might map your ERM into relational model, which consists of tables (relations) only.

Your shown relationship ' (ONE) Warehouse-> could have many -> orders' expresses the trivial fact that a warehouse has many orders. It is already clear that those orders belong to a sole warehouse because your given task is headlined by "Design a ERM datamodel for a warehouse". Thus, we should omit the entity warehouse.

Your warehouse datamodel may have these entities: products, customers, orders, orderlines, suppliers, stock (to record products on stock)

where the following relationships can be found:

customers ------ one-to-many ----<- orders

orders ----- one-to-many -----<- orderlines

products ----- one-to-many ----<- orderlines

products ->---- many-to-many ----<- suppliers

products ----- one-to-many ----<- Stock

If you are to design the relationship between suppliers and products more detailed in an analogous way to customers/orders, you have to adopt similar entities such us purchase and purchase_orderline.

You also may have a look at http://www.databaseanswers.org/data_models/index.htm.

brs, cliff
Reputation Points: 158
Solved Threads: 98
Master Poster
tesuji is offline Offline
720 posts
since Apr 2008
Apr 15th, 2008
0

Re: ERD for Warehouse?

Dear tesuji

Thank you for your reply to my post.

Please find attached my ERD and Data Dictionary I would be very grateful if you could correct any Errors I have made especially with Primary, Foreign and composed key.

Thanks for your help

BTW thanks for pointing out the website.

HB25
Attached Files
File Type: doc ERD and Data Dictionary.doc (47.0 KB, 338 views)
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
HB25 is offline Offline
74 posts
since Dec 2007
Apr 15th, 2008
0

Re: ERD for Warehouse?

hi

i ve just checked your erd und dd:

1. items must have primary key, e.g. foreign key order_id + item_nb (1,2,3..)
item_nb is necessary, if a certain order contains more then 1 item.

2. relationship between suppliers and products should be many-to-many, that is a certain product could be delivered by many suppliers and a certain suppliers could deliver many products.

3. data type of qty should be integer.

4. I would drop entity warehouse, as already stated.


further on, your erd seems to be ok, especially all crowfeet are placed correctly.

brs, cliff


Click to Expand / Collapse  Quote originally posted by HB25 ...
Dear tesuji

Thank you for your reply to my post.

Please find attached my ERD and Data Dictionary I would be very grateful if you could correct any Errors I have made especially with Primary, Foreign and composed key.

Thanks for your help

BTW thanks for pointing out the website.

HB25
Reputation Points: 158
Solved Threads: 98
Master Poster
tesuji is offline Offline
720 posts
since Apr 2008
Apr 15th, 2008
0

Re: ERD for Warehouse?

Thank you tesuji you have been very helpful and solved my problem.

Kind Regards
HB25
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
HB25 is offline Offline
74 posts
since Dec 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Database Design Forum Timeline: Reservation diving
Next Thread in Database Design Forum Timeline: database design advice





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC