MIS 430: WEEK 5 Data warehouse & Data Mart Modeling

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/61

encourage image

There's no tags or description

Looks like no tags are added yet.

62 Terms

1
New cards

What is the main focus of Data Warehouse and Data Mart Modeling Part 2?

Characteristics of dimensions and fact tables.

2
New cards

What are operational keys also called?

Natural keys.

3
New cards

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.

4
New cards

What is a surrogate key?

A simple, non-composite, system-generated key used within the data warehouse.

5
New cards

What type of values are commonly used for surrogate keys?

Simple auto-increment integer values.

6
New cards

Where is a surrogate key used?

Only within the data warehouse (DWH).

7
New cards

What are the two main purposes of a surrogate key?

Uniquely identify a dimension record and join the dimension to the fact table.

8
New cards

Why are surrogate keys needed?

To handle the slowly changing dimension issue.

9
New cards

Which type of table uses surrogate keys?

Dimension tables.

10
New cards

How do dimension surrogate keys relate to the fact table?

The dimension surrogate keys appear as foreign keys in the fact table.

11
New cards

What are the major characteristics of a dimension table?

Surrogate key, denormalized structure, many attributes, mostly categorical data, and relatively few records.

12
New cards

How normalized are dimension tables typically?

They are denormalized, typically 0 NF or 1 NF.

13
New cards

How many attributes do dimension tables typically have?

A large number of attributes.

14
New cards

What do dimension attributes capture?

Specific aspects of decisions being made.

15
New cards

What type of data do dimension attributes mostly contain?

Non-numeric, categorical data.

16
New cards

How is numeric data often handled in dimension tables?

Numeric data is often converted into categorical data.

17
New cards

How does the number of dimension-table records compare with a fact table?

Dimension tables contain relatively few records compared with fact tables.

18
New cards

What type of key does a fact table have?

A concatenated key of dimension keys.

19
New cards

What determines the granularity of a fact table?

The granularity of the dimension tables.

20
New cards

In the sales example, what can each fact-table record represent?

Sales by Store, Date, Customer, and Product.

21
New cards

What type of data are fact-table measures typically?

Numeric attributes.

22
New cards

How many records can a fact table contain?

Many-many-many records, potentially millions.

23
New cards

How do dimension and fact tables differ in growth?

Dimension data is relatively static, while the fact table rapidly grows in number of records.

24
New cards

Which has orders of magnitude fewer records: dimension tables or fact tables?

Dimension tables.

25
New cards

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.

26
New cards

What are the three types of fact-table measures?

Fully additive, semi-additive, and non-additive.

27
New cards

What is a fully additive measure?

A measure that can be summed across any of the dimensions associated with the fact table.

28
New cards

What is the PowerPoint's example of a fully additive measure?

Sales.

29
New cards

Why is sales considered fully additive?

Sales can be added across time, stores, or regions.

30
New cards

What is a semi-additive fact?

A fact that can be summarized across some dimensions but not others.

31
New cards

What is one example of a semi-additive fact?

Account balance.

32
New cards

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.

33
New cards

What is another example of a semi-additive fact?

Quantity-on-hand (inventory).

34
New cards

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.

35
New cards

What is a non-additive fact?

A fact that cannot be added meaningfully across any dimension.

36
New cards

What are examples of non-additive facts?

Textual facts, per-unit prices, percentages and ratios, measures of intensity, and averages.

37
New cards

Why is an average unit price non-additive?

Adding average prices together does not produce a meaningful total.

38
New cards

Why is temperature a non-additive measure?

Adding temperatures together does not produce a meaningful analytical total.

39
New cards

What does a fact table normally contain?

Foreign keys and measures.

40
New cards

What additional non-measure attributes can sometimes appear in a fact table?

Transaction identifier and transaction time.

41
New cards

Why can a transaction identifier be useful for analysis?

It is useful for market basket analysis, also called association rule mining.

42
New cards

What question can market basket analysis help answer?

Which items are frequently purchased together by customers?

43
New cards

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.

44
New cards

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.

45
New cards

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.

46
New cards

How many possible second-level time values exist in one day?

86,400 (24 × 60 × 60).

47
New cards

According to the ZAGI example, where can TimeOfDay be stored?

Directly in the SALES fact table.

48
New cards

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.

49
New cards

What does each record in a detailed fact table represent?

A single fact.

50
New cards

What level of granularity does a detailed fact table have?

A fine level of granularity.

51
New cards

What does each record in an aggregated fact table represent?

A summary of multiple facts.

52
New cards

What level of granularity does an aggregated fact table have?

A coarser level of granularity.

53
New cards

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.

54
New cards

In ZAGI Aggregated Fact Table Example 1, what is the grain?

Sales per day, product, customer, and store.

55
New cards

In ZAGI Aggregated Fact Table Example 2, what is the grain?

Sales per day, customer, and store.

56
New cards

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.

57
New cards

What are the two types of detailed fact tables presented?

Transaction-level and line-item detailed fact tables.

58
New cards

What is a transaction-level detailed fact table?

A detailed fact table in which each row represents a particular transaction.

59
New cards

What are examples of transaction-level facts?

A single sales transaction, a single car rental transaction, or a defect detection.

60
New cards

What is a line-item detailed fact table?

A detailed fact table in which each row represents each line item of a particular transaction.

61
New cards

What are examples where a line-item detailed fact table can be used?

Order transactions and invoice transactions.

62
New cards

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.