Star Schema Design - Individual Assignment - Meghana
Star Schema Design - Individual Assignment - Meghana
Contents
Access of Data.......................................................................................................................................2
Fact Table..............................................................................................................................................6
Dimensions...........................................................................................................................................7
Grain......................................................................................................................................................8
1
Business Process Identification
This Paper is about the E-commerce platform. The customer places an order for one or more
products on the e-commerce website. The website keeps track of all the order information,
including the product(s), quantity, customer data, payment method, and shipping address.
Before processing an order, a website verifies the billing and shipping addresses. For order
fulfilment, the warehouse receives the online order information. Items are chosen from
Once a shipping label has been generated, the shipping carrier picks up the cargo from the
warehouse. The shipping company delivers the package to the consumer at the designated
address. The online store updates the order status to "Shipped" and emails the customer to
The parties engaged in this business process are the customer, the e-commerce website, the
warehouse, the delivery provider, and customer support. Data related to this process can be
gathered and analysed to provide insights into consumer behaviour, product performance,
order fulfilment efficiency, and revenue generation, among other crucial business aspects.
Access of Data
2
Dimensional Model Design
High Level Model Diagram that contains two Fact Table and
conformed dimensions which are commonly used by both
the Fact tables
3
Retail Sales Detailed Diagram
4
5
Online Sales Detailed Diagram
6
Fact Table
There are two Fact Tables, Retail Sales Fact Table & Online Sales Fact Table, in each Fact
Table we have Composite Primary Keys and Foreign Keys. These keys hold the basic
This fact table will capture order-related metrics at the granular level of individual orders.
The grain of this fact table will be at the order line-item level, capturing detailed information
about each product ordered within an order. In this Scenario the important design
considerations for this fact table include selecting appropriate measures and keys, such as:
Retail Sales ID (PK), Product ID (FK), Store ID (FK), Location ID (FK), Payment Method
ID (FK), Promotion ID (FK), Time ID (FK), Date ID(FK), Actual Sales, Forecasted Sales,
Price, Discount
Online Sales ID (PK), Product ID (FK), Customer ID (FK), Order Fulfilment ID (FK),
Payment Method ID (FK), Promotion ID (FK), Time ID (FK), Date ID (FK), Order
7
Dimensions
Product, Date, Time, Payment Method, Promotions, Shop, and Location are the
Product, Date, Time, Payment Method, Promotions, Order Fulfilment, and Customer
are the dimension tables for the Online Sales Fact Table.
The conformed dimensions include product, date, time, payment method, and
promotions tables since these dimensions are frequently utilized in both fact tables.
Although the geographical information may have been included in the store
dimension.
In the future it is possible that several stores would be added to the same region
owing to rising demand (zip code). As a result, adding the Location dimension
There might be more than one form of promotion. For instance, a spring promotion
can have several different sorts at once, such as a flat 10% discount for all purchases,
5% cashback for store card holders, and an additional 10% off for staff members. As a
result, the Navigation Bridge table Promotion-Type has been developed to record all
The study of customer purchase or preference analytics is made possible by the time
dimension. For instance, at some places, we can research when it's busy, when a
certain product is in higher demand in the evening, how to reduce checkout lines,
etc.
8
The method used to deliver the product to the consumer is captured by the Order
fulfilment dimension in the case of Online sales Fact table. For instance, if the
We have divided the Date and Time dimensions so that we may evaluate the
consumer purchase behaviour because a single client may make many purchases
For each fact table, a substitute key has been utilized in place of the primary key. For
instance, the primary key to capture each transaction at a retail store will be the
The online sales ID serves as a main key for the fact table for online sales in a similar
manner.
As the conforming dimensions are present in both fact tables, the surrogate key is
Also, all of the fact tables' dimensional primary keys are used as foreign keys.
The Retail Sales fact table has additional properties like as Actual Sales, Forecasted
Sales, Price, and Discount in addition to the seven foreign keys for the seven
dimensions of Product ID, Shop ID, Location ID, Payment Method ID, Promotion ID,
Grain
9
The fact tables are measured at an immediate point in time rather than over a period
The smallest degree of detail into which a fact table is divided is known as the grain.
10