Dimensional Modelling Flashcards

1
Q

What is Dimensional modelling (DML)

A

A logical design technique to present data in standard intuitive form for high-performance access.

Forms a star schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are keys ?

A

One table with COMPOSITE PRIMARY KEYS called FACT TABLE and set of smaller tables called DIMENSION TABLE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is primary and surrogate keys?

A

PRIMARY:
each dimension has one of these that corresponds to one component from composite key in the fact table.

SURROGATE:
all dimension and fact tables are done using surrogate keys.
Warehouse can independently decide how to store data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a fact table ?

A

Facts are events generated by events occuring in the past. Contains most of the data and can be read-only.
Usually they are numerical or additive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a dimension table ?

A

Contain descriptive textual info
Are used as constraints in queries
They are useful by denormalizing reference info into single dimension table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a snowflake schema ?

A

A variant of star that has fact table in center and has normalized dimension table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a starflake schema?

A

Hybrid structure that has a mix of star and snow dimension tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the advantages of DML?

A

Efficiency.
All dimensions are equivalent to access the fact table.
Adding new facts, dimensions, dimensional attributes
Predictable query processing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Difference b/w ER and DML

A

ER:
Single model decomposes to multiple DML
Used for identifying relations among entities to remove redundancy

DML:
Multiple DM’s are associated through shared dimension tables
Attraction is high performance of ad-hoc user queries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is DML stage of Kimball’s Business Dimensional Lifecycle

A

This stage can result in creation of DML for data mart or dimensionalize a schema for OLTP.

Allows easy integration with other related data marts to form an enterprise wide DW

A DML containing more than 1 fact table sharing more than 1 conformed dim tables - FACT CONSTELLATION.

Starts by defining high-level DML which gains detail and is a two phased approach
1. Creation of high-level DM - 4 steps
2. Adding details to model through identification of attributes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe all the phases in Kimball’s

A

Phase 1 step 1 SELECT BUSINESS PROCESS: Process refers to SUBJECT MATTER of particular data mart.
First data mart built:
be delivered on time
within budget
answer commercially imp questions

Phase 1 step 2 DECLARE GRAIN: Decide what each record of the fact table will represent. Grain decision for fact table determines grain of each dimension table.
Includes TIME AS CORE DIMENSION, ALWAYS present in star schemas.

Phase 1 step 3 CHOOSE DIMENSIONS: set the context for asking questions about facts on fact table. if it occurs in two data marts they must be exactly he same or one is a subset of the other. And this type of dimension is called CONFORMED DIMENSION.

Phase 1 step 4 IDENTIFY FACTS: The garin determines which facts can be used in data mart.

Phase 2: IDENTIFY ALL DIMENSION ATTRIBUTES FOR DM:
add attributes to dim tables
Identified by business requirements
text description added to tables for better understanding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what are the Issues while developing DML?

A

Choosing a duration of database:
How far back DB goes
Some want a year or two back info for comparison
Other legally require docs dating 5 years back or more
Old ones there is problem with reading and interpretation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is slowly changing dimension problem ?

A

Proper description of old client and old branch mist be used with old transaction history. DW must assign key to these dimensions to distinguish clients and branches

3 Types:
1. Changed dim attribute overwritten
2. Changed dim leads to new dim record to be created.
3. old changed to new attribute so new values are simultaneously available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly