0% found this document useful (0 votes)
41 views10 pages

Star Schema Design - Individual Assignment - Meghana

Uploaded by

sparasa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views10 pages

Star Schema Design - Individual Assignment - Meghana

Uploaded by

sparasa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

STAR-SCHEMA

INDIVIDUAL ASSIGNMENT (MIS 633 – A)

Contents

Business Process Identification.............................................................................................................2

Access of Data.......................................................................................................................................2

Dimensional Model Design...................................................................................................................3

Retail Sales Detailed Diagram...............................................................................................................4

Online Sales Detailed Diagram.............................................................................................................5

Fact Table..............................................................................................................................................6

Retail Sales Fact.............................................................................................................................6

Online Sales Fact...........................................................................................................................6

Dimensions...........................................................................................................................................7

Attributes and Keys...............................................................................................................................8

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

inventory and packaged for shipping at the warehouse.

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

let them know.

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

I have got this data from Kaggle website.

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

Detailed Diagram for Retail Sales, that contains the Fact


table and all the Dimensions with their respective attributes

4
5
Online Sales Detailed Diagram

Online Sales Detailed Diagram, that contains the Fact table

and all the Dimension with their respective attributes

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

information between both the Entities.

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 Fact

 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 Fact

 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

Quantity, Price, Discount

7
Dimensions

 Product, Date, Time, Payment Method, Promotions, Shop, and Location are the

dimension tables for the retail sales fact table.

 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

independently was a fine decision.

 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

such event combinations.

 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

consumer chooses in-store pickup or home delivery.

 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

throughout the course of a single day.

Attributes and Keys

 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

retail sales ID in the fact table for retail sales.

 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

utilized as the primary key for each of them.

 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,

Time ID, and Date ID.

Grain

9
 The fact tables are measured at an immediate point in time rather than over a period

of time since the grain is used to record each unique operation.

 The smallest degree of detail into which a fact table is divided is known as the grain.

10

You might also like