Professional Documents
Culture Documents
Business Intelligence
Goals
Learn about the concept of Data Warehousing. Learn about how to design and implement a Data Warehouse Dimensional database. Learn about what is a cube. Data Warehouse cube design. Learn about the SQL Server Analysis Services Architecture Learn about querying cube (MDX Language).
Analysis Services
Clients
Query Data
Data Warehouse
Table vs Cube Star Schema and Snowflake Schema Fact Table and Dimension Table
Table vs Cube
A simplified example:
A typical relational table
Data are organized by rows
Sales table
Region dim
Sales $ 1 2 3 4
East
West
Total
Donut Milk
Total
Product dim
1 3 4
2 4 6
3 7 10
Star Schema
A Star Schema contains a fact table and one or more dimension tables.
1. A Fact Table: The central fact table store the numeric fact (measures) such as Sales dollars, Costs, Unit Sales etc. 2. Dimension Tables: They surround the central fact table, and they store descriptive information about the measures
Star schema
Snowflake Schema
Region
North South East West 1999 2000 2001 2002
Time
Milk Soda
Beer
Dimension
All dimensions are based on tables or views in a data source view. The structure of a dimension is largely driven by the structure of the underlying dimension table or tables. The simplest structure is called a star schema, which is where each dimension is based on a single dimension table that is directly linked to the fact table by a primary key - foreign key relationship.
Dimension Consists of
A dimension consists of:
Attributes that describe the entity User-Defined Hierarchies that organize dimension members in meaningful ways
such as Store Name Store City Store State
Store Country
Attributes
Containers of dimension members Typically have one-many relationships between attributes in the same dimension:
City State, State Country, etc. All attributes implicitly related to the key
Calendar Hierarchy
The Year, Quarter, and Month attributes are used to construct a hierarchy, named Calendar, in the time dim. The relationship between the levels and members of the Calendar dimension (a regular dimension) is shown in the following diagram.
Analysis Server
IIS
XMLA AMO
MOSS
BIDS SSMS ADOMD .NET SSRS
HTTP
Business Intelligence Development Studio (BIDS) Excel 2007 Uses MDX SSAS Entity Framework (Third Party Tool)
Demo