Data Model for Data Warehouse

Download Data Model for Data Warehouse

Post on 22-Mar-2016

222 views

Category:

Documents

6 download

Embed Size (px)

DESCRIPTION

()

TRANSCRIPT

  • LOGO

    1

    Data Warehousing 5

    (Data Modeling for Data Warehouse)

  • Contents

    2

    3

    1

    LOGO2

    3

    ER-diagram4

    5

  • Dimensional Data Model

    Relational Data Model

    Data Model

    LOGO3

    Data Model

    (Dimensional Data Model)

  • Fact table

    Measures

    Dimensions (table)

    LOGO4

    Dimensions (table)

    Attributes

    Hierarchies

  • (1) Fact

    Fact

    LOGO5

    (State)

  • (1) Fact

    Fact Table

    - Measure

    - Dimension

    -

    Fact

    LOGO6

    Fact Fact Table

    **

  • (1) Fact

    (Possible Values)

    Measure

    Dimension (1) ,

    Dimension (2) 4 2550,

    LOGO7

    Measure Dimension

    (Possible Values) Dimension Measure ( )

  • (1) Fact

    Dimension Measure

    Dimension

    Measure Measure

    (Possible Values)

    LOGO8

    (Possible Values)

    Measure (1)

    Measure (2)

    Dimension (1) ,

    Dimension (2) 4 2550,

  • (2) Dimension

    Dimension

    Dimension Hierarchies

    LOGO9

    Dimension (Primary Key) Fact table

  • (3) Measures

    Measures

    LOGO10

    Measures

  • Star schema: Fact table Dimension tables

    LOGO11

    tables

    Snowflake schema: Star schema Dimension table

  • Star schema

    LOGO12

  • Snowflake schema

    LOGO13

  • Schema

    Star schema Snowflake schema

    LOGO14

    Query

  • Designing of a Data Warehouse

    (Fact/Dimension/Measure) 2

    2

    LOGO15

    2

    1. Query oriented approach Business oriented approach

    2. ER-diagram

  • ER-diagram

    Step 0:

    Step 1: entities

    Step 2:

    Step 3:

    LOGO16

    Step 3:

    Step 4: Schema

  • Step 1: Entities

    1. Transaction entities

    -

    (business transaction)

    LOGO17

    (business transaction)

    -

  • Step 1: Entities

    2. Component entities

    Transaction entities

    Component entities Transaction entities 1-M

    LOGO18

    Transaction entities 1-M

    Component entities , , ,

    Step 0 Component entity

  • Step 1: Entities

    3. Classification entities

    Component entities

    Classification entities Component entities 1-M

    (Hierarchy)

    LOGO19

    (Hierarchy)

    entities entities

  • Step 2:

    (Dimensional model)

    LOGO20

  • Step 3:

    1 Step 2

    2 Component entities

    3 Component entities 2

    LOGO21

    3 Component entities 2

    4 Step 2

  • Step 4: Schema

    Schema 2

    4.1 Star schema

    4.2 Snowflake schema

    LOGO22

    4.2 Snowflake schema

    (** Normalizing Star schema)

  • Step 4: Schema

    4.1 Star schema ER diagram

    Fact Transaction entities Component entities

    Dimension

    LOGO23

    Dimension Component entities

    (Measure) Fact

  • Step 4: Schema

    4.2 Snowflake schema ER diagram

    Star schema Normalizing

    Fact Transaction entities

    LOGO24

    Transaction entities Component entities

    Dimension Component entities

    ** Dimension

  • : Step 4

    Snowflake schema Online Join

    LOGO25

    (OLTP database)

  • Dimension Fact Business key

    /

    LOGO26

    /

    Fact index

  • LOGO27

  • LOGO

    28

    Do you have any Question ??

Recommended

View more >