fact less fact tables & aggregate tables

17
Fact Less Fact Tables & Aggregate Tables in Dimensional Modeling By: Prof. Sunita Sahu Assistant Prof.,VESIT,Mumbai

Upload: sunita-sahu

Post on 16-Mar-2018

1.121 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: Fact less fact Tables & Aggregate Tables

Fact Less Fact Tables

&

Aggregate Tables

in

Dimensional Modeling

By:

Prof. Sunita Sahu

Assistant Prof.,VESIT,Mumbai

Page 2: Fact less fact Tables & Aggregate Tables

Fact less Fact table

Fact less Fact table does not contain any facts.

Generally Fact less fact tables are used to record

the events such as students attendance,

attendance of participants for an Event like a

Meeting.

There are applications in which fact tables do not

have non key data but that do have foreign keys for

the associated dimensions

Page 3: Fact less fact Tables & Aggregate Tables
Page 4: Fact less fact Tables & Aggregate Tables

Fact less Fact table Example

Page 5: Fact less fact Tables & Aggregate Tables

Aggregate Fact Tables

Aggregates are pre calculated summaries derived

from the most granular fact table(level of detail in

the fact table).

If the fact table is at the lowest grain.

The 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 6: Fact less fact Tables & Aggregate 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

Aggregate Fact Tables

Page 7: Fact less fact Tables & Aggregate Tables
Page 8: Fact less fact Tables & Aggregate Tables
Page 9: Fact less fact Tables & Aggregate Tables
Page 10: Fact less fact Tables & Aggregate Tables

Fact table size

Page 11: Fact less fact Tables & Aggregate Tables
Page 12: Fact less fact Tables & Aggregate Tables

Need for aggregates

Page 13: Fact less fact Tables & Aggregate Tables
Page 14: Fact less fact Tables & Aggregate Tables

Aggregating fact table

Page 15: Fact less fact Tables & Aggregate Tables
Page 16: Fact less fact Tables & Aggregate Tables
Page 17: Fact less fact Tables & Aggregate Tables

THREE WAY