Data Warehousing Community Forum
February 09, 2012, 01:15:03 pm

Pages: [1]   Go Down
  Print  
Author Topic: star schema designing  (Read 757 times)
vinodh
DW Fresher
*

Reputation: +1/-0
Offline Offline

Posts: 1


View Profile
« on: March 02, 2010, 02:15:05 pm »

Hi ,
       Iam new one to datawarehousing.How to design the star schema.
we have the hr module(OLTP) which has 77 tables.
I have some basic doubts please anyone clear that.

http://en.wikipedia.org/wiki/Star_schema

For ex.
I followed the above link.

Whether OLTP table and dimension table are same or not.
If not,can we create the dimension tables from OLTP tables?

Fact_sales table has date_id,stroe_id,product_id and units_sold.

date_id refers dim_date.
store_id refers dim_Store.
product_id refers dim_product.
but  units_sold refers what?

It is a big confusion to me?please anyone help me out that?



Logged
Sipra
Founder
*****

Reputation: +59/-0
Offline Offline

Posts: 323


Am the King...


View Profile WWW
« Reply #1 on: March 03, 2010, 01:14:10 am »

Hope you are reffering to the below diagram only

               

From this, other than the three foreign keys; the units sold will represent the quantity of units that have been sold by store wise, product wise and finally on which date that got sold.

This info will be retrieved absed on the three foreign keys available in the fact. Hope you have your answer..
Logged

Whoever
Administrator
*****

Reputation: +34/-0
Offline Offline

Posts: 124



View Profile WWW
« Reply #2 on: March 03, 2010, 10:35:33 am »

Fact_sales table has date_id,stroe_id,product_id and units_sold.

date_id refers dim_date.
store_id refers dim_Store.
product_id refers dim_product.
but  units_sold refers what?


@Vinodh, units_sold is what is called as a "Fact".
Logged

If most people said what’s on their minds, they’d be speechless.
Pages: [1]   Go Up
  Print  
 
Jump to: