My question is about relationships between dimensions. Let's say we have the following dimensions: customer, campaign and order. The campaign is a source of traffic, like referrer URL. When the customer signs up for the site, we register his referreral campaign id. Customer purchase is associated with some campaign as well. The campaign dimension has about 50 attributes. I don't want to roll campaign dimension with customer. Is a foreign key from the campaign to customer dimension a good idea?

    Requires Free Membership to View

Seems like you have pressed the campaign dimension into "multi-duty". On the one hand, During sign up, you are tracking the referral (what was the influence that attracted the customer and/or got the customer to register). On the other hand, you are tracking whether promotional campaigns were taken advantage of by the customer when an order was placed/purchase was made.

When a customer signs up, does the "referral campaign" also get associated to any orders placed? Seems like the referral is an attribute of the customer registration event. Can a customer register more than one time? If so, maybe you need an event fact? If not, perhaps the referral should be an attribute about the customer. If you are managing campaigns for different intended reasons (generating registrations vs. generating sales), perhaps you have two different campaign dimensions? If that is not reasonable for your business, I am not seeing anything particularly "bad" about carrying a foreign key from customer to campaign.

Hope this helps you in your design.

For More Information


This was first published in February 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: