Creating a dimension table (with hierarchy)
Hello - I am using our Orders table to create a Family Code dimension table for our products. (just referencing the table, and deleting all other columns).
However, we also have a hierarchy.
So, a particular type of product, goes under a family code, along with other related products. Something like:
Bikes: Mountain Bikes, Cruising Bikes, Double-Seated Bikes
Tents: Round Tents, Square Tents, Rectangle Tents
or
Family Code Product Code
HAPO HAPO-A
HAPO-B
HAPO-C
LAPR LAPR-A
LAPR-B
LAPR-C
I was going to just keep these two columns for my Dim table, but then quickly realized I would not have unique values on the Family Code. So, my question is, what is the best practice to create a dim table when you have hiearchies?
Thanks in advance!