Home > Ask the Data Management Experts > Questions & Answers > Referencing a dimension table from a fact table
Ask The Data Management Expert: Questions & Answers
EMAIL THIS

Referencing a dimension table from a fact table

Ian Abramson EXPERT RESPONSE FROM: Ian Abramson

Pose a Question
Other Data Management Categories
Meet all Data Management Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 10 February 2004
How do I build a data warehouse? How can I reference a dimension table from a fact table?

>
EXPERT RESPONSE
The question, "How do I build a data warehouse?" is very open-ended. I would suggest that you look at the current crop of data warehousing books that discuss how to best build a data warehouse.

Your second question about how to reference dimension tables from a fact table, is one that I can provide some guidance. When creating a dimension table in a data warehouse, we generally create the tables with a system generated key to unqiuely identify a row in the dimension. This key is also known as a surrogate key. The surrogate key is used as the primary key in the dimension table. The surrogate key will also be placed in the fact table and a foreign key will be defined between the two tables. When you ultimately join the data it will join just as any other join within the database.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Data warehouse management
Data warehousing, data mining and data querying: Terms and definitions
What is an operational data store vs. a data warehouse?
Can a dimension table be a fact table for another data mart?
Data warehouse appliances go mainstream
Risky business: How to assess risk during software purchases
Data warehouse case study: Midsized insurer goes enterprise with data warehouse
Favorable business intelligence contract terms the right prescription for Canadian hospital network
Can I have two data warehouses?
The Magic Quadrant trap: Are analyst ranking reports being used appropriately?
IBM brings BI, text search to Super Bowl coverage

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
data modeling  (SearchDataManagement.com)
extract, transform, load  (SearchDataManagement.com)
OLAP  (SearchDataManagement.com)
tree structure  (SearchDataManagement.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts