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 > Beginner's Database Warehousing Question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-10, 12:58
BrandonEZ BrandonEZ is offline
Registered User
 
Join Date: Dec 2010
Posts: 4
Beginner's Database Warehousing Question

thanks for the help r937, got it solved by a friend.

Last edited by BrandonEZ; 12-15-10 at 04:34.
Reply With Quote
  #2 (permalink)  
Old 12-14-10, 14:49
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by BrandonEZ View Post
should the ItemID and StoreID in my fact table
which fact table? could you show it please?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 12-14-10, 18:06
BrandonEZ BrandonEZ is offline
Registered User
 
Join Date: Dec 2010
Posts: 4
thanks for the help r937, got it solved by a friend.

Last edited by BrandonEZ; 12-15-10 at 04:34.
Reply With Quote
  #4 (permalink)  
Old 12-14-10, 18:09
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
yeah, i know what a fact table is

you mentioned three tables, and then asked about linking your fact table to the sales table

so what does your fact table look like?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 12-14-10, 18:17
BrandonEZ BrandonEZ is offline
Registered User
 
Join Date: Dec 2010
Posts: 4
thanks for the help r937, got it solved by a friend.

Last edited by BrandonEZ; 12-15-10 at 04:34.
Reply With Quote
  #6 (permalink)  
Old 12-14-10, 18:28
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
based solely on the information you've provided so far, i would say that the sales table ~is~ your fact table

i mean, what other data do you have? this is why i was asking to see your fact table -- what else do you intend to store?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #7 (permalink)  
Old 12-14-10, 18:41
BrandonEZ BrandonEZ is offline
Registered User
 
Join Date: Dec 2010
Posts: 4
thanks for the help r937, got it solved by a friend.

Last edited by BrandonEZ; 12-15-10 at 04:34.
Reply With Quote
  #8 (permalink)  
Old 12-15-10, 11:21
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
So, you got your friend to do you homework for you?
Quote:
Originally Posted by BrandonEZ View Post
Hi all.

I have a simple question regarding warehousing but the conditions stated in the question is one that I have not encountered before:

A company operates a store with delivery stores. The company is setting up store data warehouse to store information for sales analysis. The total sales(total items sold and total dollars received) per day and per month for each item for each delivery store should be kept in the data warehouse.Data for the data warehouse are extracted from a company database. There are three tables:

ITEM(ItemID, ItemName, Price, Description)
SALES(ItemID, StoreID, ItemDeliveredDate)
STORE(StoreID, StoreName, City, Address)

Note: Primary keys are underlined.
Now design and draw the schema for the data warehouse to accurately represent the data warehouse for the store company. Choose suitable primary keys and foreign keys for the fact and dimension tables in the star schema.


The conditions are very straightforward, but my question is, should the ItemID and StoreID in my fact table be related to those of SALES which then relate to ITEM and STORE, or otherwise?

In the examples given in the lecture notes and the tutorials, only examples in which dimension tables are independent of each other were given so I am quite confused at this question.
...and then decided to delete the posts so that your professor won't find it?
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
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