Difficulty flipping from relational modeling to dimensional modeling

  • Im building my first star schema

    Order fact table with Product, retailer. date and customer dimensions so that's fine.

    im finding it hard getting my mind set out off my normal N-normal form approach. for example my products are mostly dresses which are supplied by designers.

    1) should this designer information be stored in a designer table that joins to the product table which then joins to the fact table. This would start to build a snowflake schema which from what ive read should be avoided if possible.

    2) should the designer info then be its own dimension table with the key stored in the fact table, if i adopt this approach i could have many dimension tables as our dresses alone come in different colors and materials,

    3) or should the designer info be merged into the product table with the likes of the color and material etc.

    so kind of getting lost in drawing a line in the sand as to what is a table of its own and whats not?

  • ps_vbdev (5/6/2014)


    Im building my first star schema

    Order fact table with Product, retailer. date and customer dimensions so that's fine.

    im finding it hard getting my mind set out off my normal N-normal form approach. for example my products are mostly dresses which are supplied by designers.

    1) should this designer information be stored in a designer table that joins to the product table which then joins to the fact table. This would start to build a snowflake schema which from what ive read should be avoided if possible.

    2) should the designer info then be its own dimension table with the key stored in the fact table, if i adopt this approach i could have many dimension tables as our dresses alone come in different colors and materials,

    3) or should the designer info be merged into the product table with the likes of the color and material etc.

    so kind of getting lost in drawing a line in the sand as to what is a table of its own and whats not?

    Personally, I would create a seperate dimension for the designer, and have a key for it in the orders fact table. That supports very simple reporting of something like "What is the $ value of all orders that were from designer ps_vbdev?"

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply