dw design fact_tables_types_6
DESCRIPTION
Tipos de tablas de hechosTRANSCRIPT
![Page 1: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/1.jpg)
DATA WAREHOUSING Multi Dimensional Data Modeling. Fact Table Types
![Page 2: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/2.jpg)
2
![Page 3: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/3.jpg)
Transaction Track processes at discrete points in time when they
occur Periodic snapshot
is a fact table that records activity during a repeating predictable time period, like the monthly summary of a bank account
Accumulating snapshot A snapshot of the most recent state of something and
therefore the dimensional foreign keys and the facts are, in general, over-written as time progresses
3
![Page 4: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/4.jpg)
Transaction-grained fact tables are often richly dimensional and usually have only a single fact (the amount of the transaction).
4
![Page 5: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/5.jpg)
Periodic snapshot records are generally repeated each reporting period as long as the thing being measured (like the account) is in existence.
5
![Page 6: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/6.jpg)
Periodic snapshots are appropriate for long running processes that extend over many reporting periods.
6
![Page 7: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/7.jpg)
Accumulating snapshots, are used for short processes that have a definite beginning and end, such as an order being filled.
7
![Page 8: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/8.jpg)
For an order, we would usually make a record for each line on the order, and we would revisit the record making updates as the order progressed through the pipeline
8
![Page 9: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/9.jpg)
The simplest implementation of an accumulating snapshot does not give you intermediate points in the history of, for example, an order.
9
![Page 10: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/10.jpg)
Accumulating snapshots typically have multiple dates in the fact table representing the major milestones of the process. However, just because a fact table has several dates doesn’t dictate that it is an accumulating snapshot.
The primary differentiator of an accumulating snapshot is that we typically revisit the fact rows as activity takes place.
10
![Page 11: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/11.jpg)
![Page 12: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/12.jpg)
![Page 13: Dw design fact_tables_types_6](https://reader033.vdocuments.site/reader033/viewer/2022042607/555d55d2d8b42a9d3b8b4d36/html5/thumbnails/13.jpg)
The Data Warehouse Toolkit.Second Edition.The Complete Guide to Dimensional Modeling.Ralph Kimball.Margy Ross