×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Address Dimension /multiple addresses

Address Dimension /multiple addresses

Address Dimension /multiple addresses

(OP)
We have a sales fact table and have a question with the customer and address dimension.

A customer can have more than one address for shipping and billing (think large company with many locations).

Each sale need to be tracked to the main parent company and to the specific location or division for shipping and billing in the sale fact table.

We need to have the ability to simply choose the parent name and return all the sales made to them including each divison without the user knowing about the deeper division details.

I think we need to create many customers one for parent/billing and shipping and a parent hierachy inside the customer dimension and a seperate address in the address table for each address.

Only a small amount of our sales approx 25% go to these large companies.


In the end I would have a sales fact table with a customer and address dimension.

Inside the customer dimension would be a column named parent and a column named division. I would not do a snowflake.

The sales fact will look as follows

Sales Fact Table
----------------
SalesCustId
ShippingCustId
ShippingAddressId
BillingAddressId

other columns......


Thanks
 

RE: Address Dimension /multiple addresses

If you are sure that you only want to record top level company and the division that you are shipping to then the structure you are suggesting should work.

You won't be able to track changes to the company structure over time, eg if one company is bought by another, and you also won't be able to show any sort of structure, ie where one division is a parent of another within the same company.

 

John
www.BIonHand.com
Online Business Intelligence

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close