The relationship between tables and dimensions

The relationship between tables and dimensions

How the dimensions are defined to the OLAP tools is a different issue from how they are physically implemented as tables in a snowflake schema.

I've reviewed a number of dimensional models and I often find a one-to-one relationship between physical tables and the dimensions that are defined to the OLAP tool, even in snowflake schemas. In most cases I find clients imposing the constraints of star schemas upon their snowflake schemas.

A good example of this is geography. The classic geography hierarchy (i.e., zip-city-county-state-region-country) is interesting to a variety of dimensions -- store, customer, supplier and so on, but redundant tables are unnecessary.

If the tables zip, city, county, state, region, country, etc. are maintained in one place and defined to the OLAP tool as simply higher levels in the hierarchies of store, customer and supplier, etc., there is only one physical place where changes to these items are stored and maintained.

The store dimension hierarchies then become store-zip-city-county-state-region-country. Users can always query for dimension values at the lowest level of the hierarchy so this dimension could be used for looking up sales (fact) by store as well as sales by zip, sales by city, etc. Geography is seldom a pure dimension in and of itself.

Star schemas would physically force one to keep the geographical data updated in each dimension it is found in, such as geographical data

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning editorial writers on the latest customer relationship management (CRM)and call center technology issues today. Our goal is to keep you informed on the hottest issues facing this fast-changing industry.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchCRM.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchCRM.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

in store, customer and supplier. If you're doing snowflake schemas, reap the benefits and reuse tables in multiple logical dimensions!

For more information, check out searchCRM's Best Web Links on Data Warehousing.


This was first published in November 2001

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.