You are on page 1of 1

http://freedatawarehouse.com:80/tutorials/dmtutorial/Star Schema.

aspx Go JUN NOV JAN


👤 ⍰❎
55 captures 20 f 🐦
16 Apr 2004 - 12 Apr 2011 2004 2005 2006 ▾ About this capture

FreeDataWarehouse.com
Data Warehouse Design Tutorials and Information

Tutorials -> Dimensional Modeling Tutorials


Tutorials
Dim. Model TOC Star Schema Designing - Examples
Definition Sponsored Links
OLTP Schema What Is A Star Schema?
Location US/Canada
Dimension Residents Only. Free
If you carefully look at our new dimensional Info. Explore the
Time modeled schema, it will look like this: undergraduate and
Dimension
graduate programs at
Product
the University of
Dimension Phoenix. Click here for
Fact Table your no obligation
Star Schema information package.
Report Mapping
Snowflake
Schema
Step by Step
Design
http://pagead2.googles

You can easily tell this looks like a STAR. Hence it is also known as Star Schema.

Advantages of Star Schema

Star Schema is very easy to understand, even for non technical business managers
Star Schema provides better performance and smaller query times
Star schema is easily extensible and will handle future changes easily

A Typical SQL Query Template for the Sales Schema will look like:

--- Select the measurements that you want to aggregate using SUM clause
SELECT P.Name, SUM(F.Sales)

--- JOIN the FACT table with Dimension Tables


FROM Sales F, Time T, Product P, Location L
WHERE F.TM_Dim_Id = T.Dim_Id
AND F.PR_Dim_Id = P.Dim_Id
AND F.LOC_Dim_Id = L.Dim_Id

--- Constrains the Dimension Attributes


AND T.Month='Jan' AND T.Year='2003' AND L.Country_Name='USA'

-- finally the 'group by' clause identifies the aggregation level. In this example you are aggregating
-- all sales within a product category.

GROUP BY P.Category

Next>> Report Mapping

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.

You might also like