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 > Newbie In DataModelling!! Help Needed with design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-13-08, 18:16
psss psss is offline
Registered User
 
Join Date: Sep 2008
Posts: 38
Newbie In DataModelling!! Help Needed with design

Newbie In DataModelling!! Help Needed with design-example1.jpg
Iam trying to create a database for the following requirement.
can anyone please tell me if the design is correct or where I went wrong!!

The case is to create a database for a company that has 3 branches (A,B,C) located in a very small
geographic location (at the same street). The branches are selling the same goods, electronic stuff.
The goal of the database is to create database for the products and enabling real-time updates of goods
delivered between the branches. Each branch can view another branches inventory in real time.
Reply With Quote
  #2 (permalink)  
Old 09-13-08, 21:26
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
nice assignment

you have a ways to go before your ER model is ready to hand in

first of all, take each of your entities, and give some sample rows for them

for example, some sample rows for the product table are

Code:
prod_id  prod_price
widget     9.37
doodad    12.98
thingie   35.00
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 11-05-08, 18:14
psss psss is offline
Registered User
 
Join Date: Sep 2008
Posts: 38
This is not my assignment. Iam trying to learn database design on my own.
so please can u explain me what this statement means, coz I think I was wrong in understanding what it means!!

"The goal of the database is to create database for the products and enabling real-time updates of goods delivered between the branches. Each branch can view another branches inventory in real time".
Reply With Quote
  #4 (permalink)  
Old 11-05-08, 18:33
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
it means there will be a table with products in it, and some way of identifying the branch that the products belong to
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 11-05-08, 19:09
psss psss is offline
Registered User
 
Join Date: Sep 2008
Posts: 38
does it mean M:M relation between products and Branch and a table like delivered_goods for connecting both products and branch table?
Reply With Quote
  #6 (permalink)  
Old 11-05-08, 23:30
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i don't think so

from the description, each item belongs to only one branch at a time

by the way, ~what~ electronic goods are we talking about?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #7 (permalink)  
Old 11-05-08, 23:39
psss psss is offline
Registered User
 
Join Date: Sep 2008
Posts: 38
sorry rudy,
I cannot answer your question because this is not something like an assignment that is given to me. I found this question in dbforums and Iam trying to model as I found the question interesting and I think it was left unresolved.
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