Data Warehousing Schemas
Data Warehousing Schemas
Data Warehousing Schemas
time,location,supplier
time,item,location 3-D cuboids
time,item,supplier item,location,supplier
4-D(base) cuboid
time, item, location, supplier
Conceptual Modeling of Data Warehouses
branch_key
location
branch location_key
location_key
branch_key
units_sold street
branch_name
city_key
branch_type
dollars_sold city
city_key
avg_sales city
state_or_province
Measures country
Snowflake explained
The single dimension table for item in the star schema is
normalized in the snowake schema, resulting in new item and
supplier tables. For example, the item dimension table now
contains the attributes supplier key, type, brand, item name,
and item key, the latter of which is linked to the supplier
dimension table, containing supplier type and supplier key
information. Similarly, the single dimension table for location in
the star schema can be normalized into two tables: new
location and city. The location key of the new location table
now links to the city dimension. Notice that further
normalization can be performed on province or state and
country in the snowake schema
Snowflake in DMQL
• define cube sales snowake [time, item, branch, location]:
dollars sold = sum(sales in dollars), units sold = count(*)
• define dimension time as (time key, day, day of week,
month, quarter, year)
• define dimension item as (item key, item name, brand,
type, supplier (supplier key, supplier type))
• define dimension branch as (branch key, branch name,
branch type)
• define dimension location as (location key, street, city
(city key, city, province or state, country))
Example of Fact
time Constellation
time_key item Shipping Fact Table
day item_key
day_of_the_week Sales Fact Table item_name time_key
month brand
quarter time_key type item_key
year supplier_type shipper_key
item_key
branch_key from_location