Professional Documents
Culture Documents
Dealer: Dealer name, city, state, single brand flag, date first operation
Customer demographics: Age, gender, income range, marital status, household size,
vehicles owned, home value, own or rent
Time: Date, month, quarter, year, day of week, day of month, season, holiday flag
a ‘spiderweb of joins’ is
required for many queries.
There is no graphical user interface (GUI) that takes a general ER model and makes it
usable by end users.
Use of the ER modeling technique defeats the basic goal of data warehousing, namely
intuitive and high-performance retrieval of data.
Every dimensional model is composed of one table with a multipart key, called the
fact table, and a set of smaller tables called dimension tables.
Each dimension table has a single-part primary key that corresponds exactly to one
of the components of the multipart key in the fact table.
Returns
Orders
Sales Contact
Payments
branch_key
branch location
location_key
location_key
branch_key
units_sold street
branch_name
city_key city
branch_type
dollars_sold
city_key
avg_sales city
province_or_street
Measures country
38 PRASHASTI KANIKAR 8/6/2020
Example of Fact Constellation
time
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
In the base fact table, the rows reflect the numbers at the lowest levels of the dimension
hierarchies.
For example, each row in the base fact table shows the sales units and sales dollars relating
to one date, one store, and one product.
By moving up one or more levels along the hierarchy in each dimension, you can create a
60
variety of aggregate
PRASHASTI fact tables.
KANIKAR 8/6/2020
Multi-Way Aggregate Fact Tables
One-Way Aggregates:
When you rise to higher levels in the hierarchy of one
dimension and keep the level at the lowest in the other
dimensions, you create one-way aggregate tables.
examples:
Product category by store by date
Product department by store by date
All products by store by date