You are on page 1of 1

http://freedatawarehouse.com:80/tutorials/dmtutorial/Location Dimension.

aspx Go JUN NOV JAN


👤 ⍰❎
51 captures 05 f 🐦
16 Apr 2004 - 12 May 2009 2004 2005 2006 ▾ About this capture

FreeDataWarehouse.com
Data Warehouse Design Tutorials and Information

Tutorials -> Dimensional Modeling Tutorial


Tutorials
Dim. Model TOC Dimension Tables - Key elements of a Dimension Table
Definition Sponsored Links
OLTP Schema
Location US/Canada
Dimension Residents Only. Free
Dimensional modeling allows only one table Info. Explore the
Time per dimension. But your OLTP data spans undergraduate and
Dimension across multiple tables as described. So we graduate programs at
Product need de-normalize the OLTP schema and the University of
Dimension export into your Dimension Tables. Phoenix. Click here for
Fact Table your no obligation
Star Schema information package.
Report Mapping
Snowflake
Schema For example, for the location dimension, you
Step by Step achieve this by joining the three OLTP tables
Design and inserting the data into the single Location
http://pagead2.googles
table.

Your Location Table will look like this:

Location Dimension Table Schema

Field Name Type


Dim_Id INTEGER (4)
Loc_Code VARCHAR (4)
Name VARCHAR (50)
State_Name VARCHAR (20)
Country_Name VARCHAR (20)

All Dimension tables contain a key column called the dimension key. In this example Dim_Id is our
dimension Id. This is the unique key into our Location dimension table.

The actual data in your Location Table may look like this

Location Dimension Table Data


Dim_Id Loc_Code Name State_Name Country_Name
1001 IL01 Chicago Loop Illinois USA
1002 IL02 Arlington Hts Illinois USA
1003 NY01 Brooklyn New York USA
1004 TO01 Toronto Ontario Canada
1005 MX01 Mexico City Distrito Federal Mexico

You may notice that some of the information is repeated in the above dimension table. The State Name
and Country Name are repeated through out the table. You may feel that this is waste of data space and
against the normalization principles. But in dimensional modeling this type of design makes the querying
very optimized and reduces the query times. Also we will learn later that in a typical data warehouse, the
dimension tables make up only 10 to 15 % of the storage as the fact table is by far the largest table and
takes up the rest of the storage allocation.

Next>> Time Dimension

Freedatawarehouse.com © Copyright 2000-2004 All Rights reserved. This site is for data warehouse, dimensional modeling and OLAP
educational purposes only. We do not guarantee the correctness of the content. The risk of using this content remains with the user.
Please read our Privacy Policy Send any comments to: contact . W3C HTML 4.01 compliant.