Data Warehouse Design GSK FMCG industry Pavan Kumar Mantha Vinod Tati Shourya Konda 11th November 2014 10 October 2014 1
UK based GSK Plc, maker of popular FMCG products like Horlicks and Sensodyne, has been planning to raise its stake in its Indian unit GlaxoSmithKline Consumer Healthcare to 75 per cent.
Business needs User wants to know…. Which are our lowest/highest margin customers ? Who are my customers and what products are they buying? What is the most effective distribution channel? What product prom- -otions have the biggest impact on revenue? Which customers are most likely to go to the competition ? What impact will new products/services have on revenue and margins?
Business needs continued… Daily, Monthly, Quarterly, Yearly reports of sales and manufactured goods. Strategic information to assess the products demand Which type of consumers to target Which products to promote Territory wise reports Product wise reports And many more…
Schema Design Star Schema Fact Constellation Schema Snowflake schema Schema Types Star Schema Fact Constellation Schema Snowflake schema Initially we have chosen star schema to implement… Now we have modified the design to implement fact constellation schema
Fact constellation Schema Two fact tables and for each dimension one dimension table has been chosen Fact Tables Sales fact Distribution fact Dimension tables Date Product Promotion Retailer Distributor
Sales Fact Sale ID (PK) Date Key (FK) Product Key (FK) Promotion key (FK) Distributor key (FK) Quantity sold Sale amount Discount percent Distributor Dimension Distributor key (PK) Distributor attributes
Distribution Fact Distributor ID (PK) Date Key (FK) Product Key (FK) Promotion key(FK) Retailer Key (FK) Quantity Sale amount Retailer Dimension Retailer key (PK) Retailer attributes
Date Product Sale Fact Retailer Distribution Fact Promotion Product_ID Product_Name Product_Category Product_brand Price_Per_Unit DateTime_ID Day Month Quarter Year Actual_date Sale Fact DateTime_ID Product_ID Promotion_ID Distributor_ID Quantity sold Sale amount Discount percent Distributor_ID Distributor_Name Distributor_addrs Distributor_PhNum Distributor_region Retailer Retailer_ID Retailer_Name Retailer_Region Retailer_PhNum Retailer_Address Retailer_Type Distribution Fact Promotion Distribution_ID Date Key Product_ID Promotion key Retailer_ID Distribution_type Distribution_desc Distribution_Qty Distribution_Amount Promotion_ID Promotion_Name Promotion_Category Promotion_brand Promotion_region Promotion_discount Promotion_Desc