A solicitação
“A retail sales star schema with a Sales fact table linked to Date, Product, Store, and Customer dimensions, storing quantity and sales amount.”
Depois, tenteAdd a promotion dimension to SalesAdd a sales channel dimension
O que há neste desenho
Entenda as decisões por trás dele.
01
Use a star schema with a single fact table containing foreign keys to each dimension and additive measures.
02
Each dimension table is denormalized with descriptive attributes.
03
Relationships from fact to dimensions are many-to-one (many sales per dimension row).
When building a data mart for retail sales analytics, where queries involve aggregating measures by dimension attributes.