Aggregate fact tables
14
-
Upload
siddique-ibrahim -
Category
Technology
-
view
5.944 -
download
1
Transcript of Aggregate fact tables
![Page 1: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/1.jpg)
![Page 2: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/2.jpg)
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](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/3.jpg)
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](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/4.jpg)
![Page 5: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/5.jpg)
![Page 6: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/6.jpg)
![Page 7: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/7.jpg)
Fact table size
![Page 8: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/8.jpg)
![Page 9: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/9.jpg)
Need for aggregates
![Page 10: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/10.jpg)
![Page 11: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/11.jpg)
Aggregating fact table
![Page 12: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/12.jpg)
![Page 13: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/13.jpg)
![Page 14: Aggregate fact tables](https://reader037.fdocuments.us/reader037/viewer/2022102621/555d55dad8b42a9d3b8b4d3d/html5/thumbnails/14.jpg)
Three way