Hi,
Lets take the well known case study of customers, products, etc. Suppose I sell a product to a customer and store the sale in my fact table (which grain is the sale). But after 15 days the customer gives the product back. What would you advise to do in that case to represent that event in my fact table to keep aggregated data accurate ?
Also, suppose that a product belongs to more than one category and of course a category holds more than one product (that is, a many to many relationship). How do I build my product dimension and moreover how do I link a product to my dimension table. Must I include two keys (product and category) in my fact table even when both products and categories are stored in the same dimension? (suppose no surrogate keys are used at this time).
Any help would be really appreciated.
Thanks
// jcoira
Lets take the well known case study of customers, products, etc. Suppose I sell a product to a customer and store the sale in my fact table (which grain is the sale). But after 15 days the customer gives the product back. What would you advise to do in that case to represent that event in my fact table to keep aggregated data accurate ?
Also, suppose that a product belongs to more than one category and of course a category holds more than one product (that is, a many to many relationship). How do I build my product dimension and moreover how do I link a product to my dimension table. Must I include two keys (product and category) in my fact table even when both products and categories are stored in the same dimension? (suppose no surrogate keys are used at this time).
Any help would be really appreciated.
Thanks
// jcoira