© Ron McFadyen1 Many-to-one-to-many We need information that can only be obtained by accessing two fact tables through a common dimension … drilling across.

Slides:



Advertisements
Similar presentations
Chapter 4 Tutorial.
Advertisements

Business Intelligence Simon Pease. Experience with BI Developing end-to-end BI prototype for Plan International Developing end-to-end BI prototype for.
9 x9 81 4/12/2015 Know Your Facts!. 9 x2 18 4/12/2015 Know Your Facts!
MIS 451 Building Business Intelligence Systems
Alternative Database topology: The star schema
1 x0 0 4/15/2015 Know Your Facts!. 9 x1 9 4/15/2015 Know Your Facts!
1 x0 0 4/16/2015 Know Your Facts!. 1 x8 8 4/16/2015 Know Your Facts!
3 x0 0 7/18/2015 Know Your Facts!. 4 x3 12 7/18/2015 Know Your Facts!
SQL Bits 8 Dimensional Modelling for a Flexible Cube John Stevens-Taylor
March 2010ACS-4904 Ron McFadyen1 Indexes B-tree index Bitmapped index Bitmapped join index A data warehousing DBMS will likely provide these, or variations,
March Ron McFadyen1 Using Rational Rose to create a database.
1 times table 2 times table 3 times table 4 times table 5 times table
Lecture 5 CS.456 DATABASE DESIGN.
Building a Data Warehouse with SQL Server Presented by John Sterrett.
OLAP OPERATIONS. OLAP ONLINE ANALYTICAL PROCESSING OLAP provides a user-friendly environment for Interactive data analysis. In the multidimensional model,
Vs. OLAP. Geography heirarchy Sales campaigns Other dimension Products Time Sales, profit, costs, key numbers, etc. Sales organization Star Scheme.
Best Practices for Data Warehousing. 2 Agenda – Best Practices for DW-BI Best Practices in Data Modeling Best Practices in ETL Best Practices in Reporting.
On-Line Analytic Processing Chetan Meshram Class Id:221.
What is SQL and Who uses it? Presented by: John Deardurff Global McOWL Internal Sales Training October 24, 2014.
4 x1 4 10/18/2015 Know Your Facts!. 5 x /18/2015 Know Your Facts!
3 x0 0 10/18/2015 Know Your Facts!. 11 x /18/2015 Know Your Facts!
BI Terminologies.
CS 157B: Database Management Systems II April 3 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak.
UNIT-II Principles of dimensional modeling
Sales Dim Date Dim Customers Dim Products Dim Categories Dim Geography The data warehouse is a simple and standard one, after all we.
Data warehousing theory and modelling techniques Graduate course on dimensional modelling.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Tables Learning Support
Houston Petroleum Valve Company Data-Mining Project Data Modeling Phase Fouad Alibrahim Mohammad H. Monakes University of Houston Clear Lake University.
Pindaro Demertzoglou Data Resource Management – MGMT 4170 Lally School of Management Rensselaer Polytechnic Institute.
Or How I Learned to Love the Cube…. Alexander P. Nykolaiszyn BLOG:
Building the Corporate Data Warehouse Pindaro Demertzoglou Data Resource Management.
All DBMSs provide variations of b-trees for indexing B-tree index
Times Tables.
Assignment 2 Due Thursday Feb 9, 2006
Dimensional Model January 14, 2003
Inventory is used to illustrate:
Retail Sales is used to illustrate a first dimensional model
Do it now activity Since the beginning of the term you have planned a database based on your own scenario. Using your plan you are going to create a database,
Typically data is extracted from multiple sources
Physical Storage Indexes Partitions Materialized views March 2004
Physical Storage Indexes Partitions Materialized views March 2006
Minidimension Example
Assignment 2 Due Thursday Feb 9, 2006
Hierarchy bridge tables (p 161+) Many-to-one-to-many join (p 169+)
Retail Sales is used to illustrate a first dimensional model
Warehouse Architecture
Physical Storage Indexes Partitions Materialized views March 2005
Learn Your 2x Facts.
Data warehouse architecture CIF, DM Bus Matrix Star schema
Aggregate Improvement and Lost, shrunken, and collapsed
Simple tips for better data warehouse design
Point-in-time balances Physical database Aggregation ETL Architecture
Retail Sales is used to illustrate a first dimensional model
Role Playing Dimensions (p )
Dimensional Model January 16, 2003
Aggregate improvement Lost, shrunken, and collapsed Ralph Kimball
Examines blended and separate transaction schemas
Review of Major Points Star schema Slowly changing dimensions Keys
3 times tables.
6 times tables.
Thing / Person:____________________ Dates:_________________
Many aggregates can be defined for one base star schema
Review of Major Points Star schema Slowly changing dimensions Keys
Page 37 Figure 2.3, with attributes excluded
Multiplication Facts 3 x Table.
Recursive Relationship
Presentation transcript:

© Ron McFadyen1 Many-to-one-to-many We need information that can only be obtained by accessing two fact tables through a common dimension … drilling across from star to star Fact table1 … dim key … Instead of one select that accesses two stars, the recommendation is Multipass SQL each fact table is queried independently and the results combined Fact table2 … dim key … Dimension table dim key …

© Ron McFadyen2 Many-to-one-to-many Consider two stars, with one fact for actual sales and the other fact for sales forecast sales … …… … For each of Buchanan’s employees, list the sales to date and their forecasted sales Some employees may not have any sales Some employees may not have a forecast forecast … employee …

© Ron McFadyen3 Many-to-one-to-many Select … from sales, employee where … Select … from forecast, employee where … Combine sales … …… … forecast … employee …