Hi,
I have a store dimension. I also have a product dimension for products sold in each store. Products are identified uniquely within a store, but across stores product codes are not unique. In staging I uniquely identify the product by the product code + store code in order to create the surrogate key. When I populate the dimension in the datamart do I only put the surrogate key out there? I have some coworkers argueing to put the store ID in the dimension but I don't believe that is correct. The store can be identified in the store dimension through the fact table. We have the same issue with the customer dimension.
Thanks
I have a store dimension. I also have a product dimension for products sold in each store. Products are identified uniquely within a store, but across stores product codes are not unique. In staging I uniquely identify the product by the product code + store code in order to create the surrogate key. When I populate the dimension in the datamart do I only put the surrogate key out there? I have some coworkers argueing to put the store ID in the dimension but I don't believe that is correct. The store can be identified in the store dimension through the fact table. We have the same issue with the customer dimension.
Thanks