How to handle : Product with N level of categroeis
3 posters
Page 1 of 1
How to handle : Product with N level of categroeis
Hi
I have a product say ‘ABC’ now its product dimension, however a product can have N level of categories.
e.g.
Product ‘ABC’ can have following categories. Cat1->Cat2-Cat3
And product ‘XYZ’ can have C at1->Cat2->Cat3->Cat4
How do I handle this scenario. Can I use bridge table between Product dimensions and Fact table.
Also, It is also possible that product can change the categories means SCD, If I use bridge table how to handle SCD.
--Kuldeep
I have a product say ‘ABC’ now its product dimension, however a product can have N level of categories.
e.g.
Product ‘ABC’ can have following categories. Cat1->Cat2-Cat3
And product ‘XYZ’ can have C at1->Cat2->Cat3->Cat4
How do I handle this scenario. Can I use bridge table between Product dimensions and Fact table.
Also, It is also possible that product can change the categories means SCD, If I use bridge table how to handle SCD.
--Kuldeep
Re: How to handle : Product with N level of categroeis
One way of doing it is to have the hiearchy for ABC repeat one of it's levels. Nothing says that Cat3 to Cat4 can't be one to one.
Jeff Smith- Posts : 471
Join date : 2009-02-03
Re: How to handle : Product with N level of categroeis
Jeff Smith wrote:One way of doing it is to have the hierarchy for ABC repeat one of it's levels. Nothing says that Cat3 to Cat4 can't be one to one.
But levels are not limited it could 4, may be 5 or may be 10.
What if I create a categories table which has a bridge table type structure (represents hierarchies within categories) and join it to Product dimensions.
Categories(:1) -----> (:N) Product (:1) ------->(:N) FactTable
As Product can have only one root level hierarchy. Do you see any problem traversing the product hierarchy like
Product1->Category1->Categgory2->------- etc
--Kuldeep
Re: How to handle : Product with N level of categroeis
You need to either use a parent-child hierarchy, or a bridge table.
Whichever you choose will depend on your OLAP/Reporting tool.
Whichever you choose will depend on your OLAP/Reporting tool.
Similar topics
» Coupons At the Order level not the Product Level
» Modelling Product Dimension when incoming fact records have missing lowest level
» Product Dim for Car manufacture
» Product Dimensions - Single Product Code Mutliple Services
» Sparse Product Dim vs Heterogeneous Product Dim
» Modelling Product Dimension when incoming fact records have missing lowest level
» Product Dim for Car manufacture
» Product Dimensions - Single Product Code Mutliple Services
» Sparse Product Dim vs Heterogeneous Product Dim
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum