I have a problem to select the suitable table for the fact table. I have problem with following two tables
OrderData Table :
- OrderID
- CustomerID
- OrderStatus
- OrderPurchaseAt
- OrderAprovedAt
- OrderDeliveredCarrier
- OrderDeliveredCustomer
- OrderestimatedDelivered
OrderItems Table :
- OrderID
- OrderItemID
- ProductID
- SellerID
- ShippingLimitDate
- Price
- Frieghtweight
What is the suitable table for fact Table? my data source is https://www.kaggle.com/olistbr/brazilian-ecommerce
Please give me a support.
Let's imagine that you have CustomerID=200 who ordered 2 products ProductID=15 and ProductID=18 with different Sellers, Prices and FreightWeight and same ShippingLimitDates.
Your will have two fact tables one for purchasing :
and one for shipping :
You model will be like below :