14

Aggregate fact tables

Embed Size (px)

Citation preview

Page 1: Aggregate fact tables
Page 2: Aggregate fact tables

Aggregates are precalculated summaries derived from the most granular fact table(level of detail in the fact table).

If the fact table is at the lowest grainThe facts or metrics are at the lowest

possible level at which they could be captured from the operational system.

what is the Advantages of lowest grain?

Page 3: Aggregate fact tables

Choose a simple STAR schema with the fact table at the lowest possible level of granularity.

Assume four dimension table with most granular fact table.

Operational system-single order, invoice, product and so on.

Data warehouse- produce large result set(these retrieve hundreds and thousands

Page 4: Aggregate fact tables
Page 5: Aggregate fact tables
Page 6: Aggregate fact tables
Page 7: Aggregate fact tables

Fact table size

Page 8: Aggregate fact tables
Page 9: Aggregate fact tables

Need for aggregates

Page 10: Aggregate fact tables
Page 11: Aggregate fact tables

Aggregating fact table

Page 12: Aggregate fact tables
Page 13: Aggregate fact tables
Page 14: Aggregate fact tables

Three way