1/61
Looks like no tags are added yet.
What is the main focus of Data Warehouse and Data Mart Modeling Part 2?
Characteristics of dimensions and fact tables.
What are operational keys also called?
Natural keys.
What are two characteristics of operational/natural keys?
They are meaningful/often used for search and can be used as foreign keys to connect related records.
What is a surrogate key?
A simple, non-composite, system-generated key used within the data warehouse.
What type of values are commonly used for surrogate keys?
Simple auto-increment integer values.
Where is a surrogate key used?
Only within the data warehouse (DWH).
What are the two main purposes of a surrogate key?
Uniquely identify a dimension record and join the dimension to the fact table.
Why are surrogate keys needed?
To handle the slowly changing dimension issue.
Which type of table uses surrogate keys?
Dimension tables.
How do dimension surrogate keys relate to the fact table?
The dimension surrogate keys appear as foreign keys in the fact table.
What are the major characteristics of a dimension table?
Surrogate key, denormalized structure, many attributes, mostly categorical data, and relatively few records.
How normalized are dimension tables typically?
They are denormalized, typically 0 NF or 1 NF.
How many attributes do dimension tables typically have?
A large number of attributes.
What do dimension attributes capture?
Specific aspects of decisions being made.
What type of data do dimension attributes mostly contain?
Non-numeric, categorical data.
How is numeric data often handled in dimension tables?
Numeric data is often converted into categorical data.
How does the number of dimension-table records compare with a fact table?
Dimension tables contain relatively few records compared with fact tables.
What type of key does a fact table have?
A concatenated key of dimension keys.
What determines the granularity of a fact table?
The granularity of the dimension tables.
In the sales example, what can each fact-table record represent?
Sales by Store, Date, Customer, and Product.
What type of data are fact-table measures typically?
Numeric attributes.
How many records can a fact table contain?
Many-many-many records, potentially millions.
How do dimension and fact tables differ in growth?
Dimension data is relatively static, while the fact table rapidly grows in number of records.
Which has orders of magnitude fewer records: dimension tables or fact tables?
Dimension tables.
What example demonstrates the size difference between dimension and fact tables?
A store dimension may add 100 stores per year, while 1,000 daily sales transactions produce 365,000 new fact records per year.
What are the three types of fact-table measures?
Fully additive, semi-additive, and non-additive.
What is a fully additive measure?
A measure that can be summed across any of the dimensions associated with the fact table.
What is the PowerPoint's example of a fully additive measure?
Sales.
Why is sales considered fully additive?
Sales can be added across time, stores, or regions.
What is a semi-additive fact?
A fact that can be summarized across some dimensions but not others.
What is one example of a semi-additive fact?
Account balance.
Why is an account balance semi-additive?
Balances can be added across Branch, Customer, and Account for a single day, but cannot meaningfully be added across the Date/Time dimension.
What is another example of a semi-additive fact?
Quantity-on-hand (inventory).
Why is quantity-on-hand semi-additive?
It can be added across Product and Store for a given month, but cannot meaningfully be added across the Date/Time dimension.
What is a non-additive fact?
A fact that cannot be added meaningfully across any dimension.
What are examples of non-additive facts?
Textual facts, per-unit prices, percentages and ratios, measures of intensity, and averages.
Why is an average unit price non-additive?
Adding average prices together does not produce a meaningful total.
Why is temperature a non-additive measure?
Adding temperatures together does not produce a meaningful analytical total.
What does a fact table normally contain?
Foreign keys and measures.
What additional non-measure attributes can sometimes appear in a fact table?
Transaction identifier and transaction time.
Why can a transaction identifier be useful for analysis?
It is useful for market basket analysis, also called association rule mining.
What question can market basket analysis help answer?
Which items are frequently purchased together by customers?
What is a degenerate dimension?
A simpler way to include an event identifier within the fact table instead of creating a separate dimension for it.
How is the transaction identifier handled as a degenerate dimension in the ZAGI example?
The TID is stored directly in the SALES fact table instead of creating a separate TransactionID dimension.
Why might transaction time be stored directly in the fact table instead of creating a Time dimension?
A Time dimension could require 86,400 records for each second of the day, multiplied by the number of days represented.
How many possible second-level time values exist in one day?
86,400 (24 × 60 × 60).
According to the ZAGI example, where can TimeOfDay be stored?
Directly in the SALES fact table.
What is the difference between detailed and aggregated fact tables?
Detailed fact tables contain single facts at fine granularity; aggregated fact tables summarize multiple facts at coarser granularity.
What does each record in a detailed fact table represent?
A single fact.
What level of granularity does a detailed fact table have?
A fine level of granularity.
What does each record in an aggregated fact table represent?
A summary of multiple facts.
What level of granularity does an aggregated fact table have?
A coarser level of granularity.
What happens to the number of fact-table records when detailed data is aggregated?
The number of records decreases because multiple detailed facts are combined.
In ZAGI Aggregated Fact Table Example 1, what is the grain?
Sales per day, product, customer, and store.
In ZAGI Aggregated Fact Table Example 2, what is the grain?
Sales per day, customer, and store.
What happens to the Product dimension in ZAGI Aggregated Fact Table Example 2?
Product is no longer part of the grain, so ProductKey is removed from the aggregated fact table.
What are the two types of detailed fact tables presented?
Transaction-level and line-item detailed fact tables.
What is a transaction-level detailed fact table?
A detailed fact table in which each row represents a particular transaction.
What are examples of transaction-level facts?
A single sales transaction, a single car rental transaction, or a defect detection.
What is a line-item detailed fact table?
A detailed fact table in which each row represents each line item of a particular transaction.
What are examples where a line-item detailed fact table can be used?
Order transactions and invoice transactions.
What is the key difference between transaction-level and line-item fact tables?
Transaction-level = one row per transaction; line-item = one row per individual item within a transaction.