Recursive Relationship

Slides:



Advertisements
Similar presentations
© 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.
Advertisements

Fall 2008ACS-1805 Ron McFadyen1 Ch 8 Recursion Recursion occurs when a method (or function) calls itself.
Entity Relationship Modeling BUS112 Professor Kwan.
March Ron McFadyen1 Using Rational Rose to create a database.
Winter 2015ACS Ron McFadyen1 Composite Pattern A composite is a group of objects in which some objects contain others; one object may represent.
 After completing this lesson, you should be able to do the following: ◦ Interpret the concept of a hierarchical query ◦ Create a tree-structured report.
Using XSLT and XPath to Enhance HTML Documents Reference: Roger L. Costello
MMG508.  Access Types  Tables  Relational tables  Queries  Stored database queries  Forms  GUI forms for data entry/display  Reports  Reports.
Table & Query Design for Hierarchical Data without CONNECT-BY -- A Path Code Approach Charles Yu Database Architect Elance Inc. Elance Inc.
Methods for Multiplying. Standard Algorithm Partial Products Draw table with dimensions of digits in each number. Ex.
Database Design Using Entity-Relationship Models Transformation of Entity-Relationship Models into Relational Database Design Trees, Networks, and Bills.
Pyramid Task Task 1Task 2Task 3Task 4 Task 5Task 6Task 7Task 8 NC Level 3 to 6.
This eCPIC Quick Guide has been developed to assist System Administrators with creating Hierarchy Grids in eCPIC. The Hierarchy Grid functionality allows.
STEP 1 Multiply the digits in the ones place. Write the product in the ones place of the answer box. If the product is greater than ten, carry the number.
Bridge Maps. Relating Factor as Is the colour of red a strawberry green grass The Bridge Map is used for seeing likeness or similarities.
M180: Data Structures & Algorithms in Java Trees & Binary Trees Arab Open University 1.
Multiplying Whole Numbers Lessons Math Vocabulary multiply – to add a # to itself one or more times e.x = 10 OR 2(5) = 10.
Order Database – ER Diagram
Multiplying and dividing decimals
Unary Many-to-Many Relationship
Microsoft Publisher 2010 Illustrated Introductory
Database Management Systems (DBMS)
CSCI-100 Introduction to Computing
Section 8.1 Trees.
Red-Black Trees Bottom-Up Deletion.

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
Entity-Relationship Model and Diagrams (continued)
Introduction lecture1.
Entity Relationships and Normalization
The Document Object Model
Database.
Applying Pascal’s Triangle
Typically data is extracted from multiple sources
Databases and Structured Files: What is a database?
Physical Storage Indexes Partitions Materialized views March 2004
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
Database Processing: David M. Kroenke’s Chapter Six:
Dr. Fowler  CCM Functions.
Bridge through Ten Addition
Data warehouse architecture CIF, DM Bus Matrix Star schema
Aggregate Improvement and Lost, shrunken, and collapsed
Factless Facts: Occurrences of Relationships or Events
How would you use your calculator to solve 52?
Point-in-time balances Physical database Aggregation ETL Architecture
Retail Sales is used to illustrate a first dimensional model
Integration Testing.
Dimensional Model January 16, 2003
Exploring and Presenting Results
Red-Black Trees Bottom-Up Deletion.
Examines blended and separate transaction schemas
Review of Major Points Star schema Slowly changing dimensions Keys
Transaction fact table (figure 7.2)
Understanding the Number Decimal to Binary Conversion
Assignment 1 Due Thursday Jan 19, 2006
Objective- To graph a relationship in a table.
©G Dear 2009 – Not to be sold/Free to use
eSeries Entities By Julie Ladner
Review of Major Points Star schema Slowly changing dimensions Keys
Legacy Databases.
Page 37 Figure 2.3, with attributes excluded
1 2 3 Key Metrics Current progress Metric Targeted state … …
Building pattern  Complete the following tables and write the rule 
Cs212: Data Structures Lecture 7: Tree_Part1
Presentation transcript:

Recursive Relationship Customer 1 comprises A customer comprises zero or more customers © Ron McFadyen

Hierarchies Customer1 is hierarchically structured. Any of these customers are ones you may deal with. Each of these appears in the customer dimension. Customer 1 Customer 2 Customer 7 Customer 3 Customer 4 Customer 8 Customer 5 Customer 6 © Ron McFadyen

Hierarchies The valid paths are: Customer 1 Customer 2 Customer 7 © Ron McFadyen

Consider the helper/bridge table Customer bridge Parent customer key Subsidiary customer key Levels from parent Level name Bottom flag Top flag Some useful additional attributes Levels from parent Level name Bottom flag Top flag And we’ll add one extra row for each node paired with itself © Ron McFadyen

Subsidiary customer key Levels from parent Level name Bottom flag Bridge table Customer bridge Parent customer key Subsidiary customer key Levels from parent Level name Bottom flag Top flag And we’ll add one extra row for each node paired with itself How many rows will there be? © Ron McFadyen