I have a fact named sales
which have FKs to dimensions product
and store
. Each of these dimensions have information about that dimension alone, but I have some information about a product
in a specific store
like where a product is in that store.
I am tempted to model a dimension where the primary key is a combination of product and store, it is ok to do that or some better alternative exists?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…