SlideShare a Scribd company logo
1 of 16
Chapter 7 : Journey to
Accounting
Prepared by:
Akshay Kotalwar
Arunesh Soni
Mitali Barhanpurkar
Rachit Mishra
Tao Zhang
JSOM, UT Dallas
2
Types of Hierarchies
JSOM, UT Dallas
2
1) Fixed Depth Hierarchy
JSOM, UT Dallas
3
• SLIGHTLY RAGGED • RAGGED
JSOM, UT Dallas
3
2) Variable Depth Hierarchy
JSOM, UT Dallas
4
RECURSIVE POINTER
• Way to represent parent/child tree structure.
• Points from child node to parent node.
1
2
4 5
3
6 7
8 9
Recursive
Pointer
JSOM, UT Dallas
5
1
2
4 5
3
6 7
8 9
PROBLEM 1 : ROLL UP ISSUE
•Roll- ups don’t end up at same level
•They are complex and slow.
JSOM, UT Dallas
6
PROBLEM 2 : SHARED OWNERSHIP
1
2
4 5
3
6 7
8 9
• Consider 60% ownership of 5 and
40% ownership of 6.
• Paths have to be modified.
JSOM, UT DallasT
7
1
2
4 5
3
6 7
8 9
PROBLEM 3 : ORGANISATIONAL CHANGE
• Major changes in the paths have to be
made.
• Reporting of past and future becomes
an issue.
The need to solve these problems brings us to the solution- the Bridge table!
Bridge Table
• Essentially ‘bridges’ a dimension and fact table.
• Preserves contents of dimensions and facts in raw form.
• Solving the previously discussed problems of the recursive
solution.
JSOM, UT Dallas
8
Organization
Dimension
Organization Key (PK)
Organization Name
Organization Location
…
Organization Map Bridge
Parent Organization Key (FK)
Child Organization Key (FK)
Depth from Parent
Highest Parent Flag
Lowest Child Flag
General Ledger Fact
Account Key (FK)
Organization Key (FK)
…
…
Amount
Balance
Bridge Table - Structure
• Record whole rollup structure
• Define its grain as each path in the tree
JSOM, UT Dallas
9
1
2 5
3 4
Parent
Key
Child Key Depth
from
parent
Highest
parent
flag
Lowest
child flag
1 1 0 Y N
1 2 1 Y N
1 3 2 Y Y
1 4 2 Y Y
1 5 1 Y Y
2 2 0 N N
2 3 1 N Y
2 4 1 N Y
3 3 0 N Y
4 4 0 N Y
5 5 0 N Y
Bridge Table – Shared ownership variant
• Department 4 outsources 60% of its work to another department 5.
• Example of a shared
ownership.
JSOM, UT Dallas
10
1
2 5
3 4
Parent
Key
Child
Key
Depth
from
parent
Highest
parent
flag
Lowest
child
flag
Owners
hip
Percent
1 1 0 Y N
1 2 1 Y N
1 3 2 Y Y
1 4 2 Y Y
1 5 1 Y Y
2 2 0 N N
2 3 1 N Y
2 4 1 N Y 40%
3 3 0 N Y
4 4 0 N Y
5 5 0 N Y
5 4 1 N Y 60%
JSOM, UT Dallas
11
Bridge Table – Shared ownership variant
• Department 4 outsources 60% of its work to another
department 5.
• Example of a shared
ownership.
JSOM, UT Dallas
11
1
2 5
3 4
Parent
Key
Child
Key
Depth
from
parent
Highest
parent
flag
Lowest
child
flag
Ownership
Percent
1 1 0 Y N
1 2 1 Y N
1 3 2 Y Y
1 4 2 Y Y
1 5 1 Y Y
2 2 0 N N
2 3 1 N Y
2 4 1 N Y 40%
3 3 0 N Y
4 4 0 N Y
5 5 0 N Y
5 4 1 N Y 60%
JSOM, UT Dallas
12
JSOM, UT Dallas
12
Bridge Table – Shared ownership variant
• Department 4 outsources 60% of its work to another
department 5.
• Example of a shared
ownership.
JSOM, UT Dallas
12
1
2 5
3 4
Parent
Key
Child
Key
Depth
from
parent
Highest
parent
flag
Lowest
child
flag
Ownership
Percent
1 1 0 Y N
1 2 1 Y N
1 3 2 Y Y
1 4 2 Y Y
1 5 1 Y Y
2 2 0 N N
2 3 1 N Y
2 4 1 N Y 40%
3 3 0 N Y
4 4 0 N Y
5 5 0 N Y
5 4 1 N Y 60%
JSOM, UT Dallas
13
Bridge Table - Advanced
• Handle time varying ragged hierarchies
JSOM, UT Dallas
13
1
2 5
3 4
1
2 5
3 4
Before 11/01/16
After 11/01/16
Bridge Table – Advantages
• Offers exceptional flexibility
• Accommodates SCD type 2 changes
• Accommodates tree structure changes
JSOM, UT Dallas
14
A quick revisit!
JSOM, UT Dallas
15
Problems Solution
1. Slow rollup issues Percent ownership column
2. Multiple parents Begin and end dates
3. Organizational changes Lowest child-flag
THANK YOU!  
JSOM, UT Dallas
16

More Related Content

Recently uploaded

Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...IJECEIAES
 
15-Minute City: A Completely New Horizon
15-Minute City: A Completely New Horizon15-Minute City: A Completely New Horizon
15-Minute City: A Completely New HorizonMorshed Ahmed Rahath
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological universityMohd Saifudeen
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdfAlexander Litvinenko
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptjigup7320
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
Intro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniIntro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniR. Sosa
 
Independent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging StationIndependent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging Stationsiddharthteach18
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...drjose256
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...josephjonse
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfJNTUA
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualBalamuruganV28
 
Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdfKamal Acharya
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxMustafa Ahmed
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Studentskannan348865
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsMathias Magdowski
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfssuser5c9d4b1
 
The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxMANASINANDKISHORDEOR
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailingAshishSingh1301
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUankushspencer015
 

Recently uploaded (20)

Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...
 
15-Minute City: A Completely New Horizon
15-Minute City: A Completely New Horizon15-Minute City: A Completely New Horizon
15-Minute City: A Completely New Horizon
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) ppt
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
Intro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniIntro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney Uni
 
Independent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging StationIndependent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging Station
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdf
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Students
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdf
 
The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptx
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 

Featured

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Group5 accounting

  • 1. Chapter 7 : Journey to Accounting Prepared by: Akshay Kotalwar Arunesh Soni Mitali Barhanpurkar Rachit Mishra Tao Zhang
  • 2. JSOM, UT Dallas 2 Types of Hierarchies JSOM, UT Dallas 2 1) Fixed Depth Hierarchy
  • 3. JSOM, UT Dallas 3 • SLIGHTLY RAGGED • RAGGED JSOM, UT Dallas 3 2) Variable Depth Hierarchy
  • 4. JSOM, UT Dallas 4 RECURSIVE POINTER • Way to represent parent/child tree structure. • Points from child node to parent node. 1 2 4 5 3 6 7 8 9 Recursive Pointer
  • 5. JSOM, UT Dallas 5 1 2 4 5 3 6 7 8 9 PROBLEM 1 : ROLL UP ISSUE •Roll- ups don’t end up at same level •They are complex and slow.
  • 6. JSOM, UT Dallas 6 PROBLEM 2 : SHARED OWNERSHIP 1 2 4 5 3 6 7 8 9 • Consider 60% ownership of 5 and 40% ownership of 6. • Paths have to be modified.
  • 7. JSOM, UT DallasT 7 1 2 4 5 3 6 7 8 9 PROBLEM 3 : ORGANISATIONAL CHANGE • Major changes in the paths have to be made. • Reporting of past and future becomes an issue. The need to solve these problems brings us to the solution- the Bridge table!
  • 8. Bridge Table • Essentially ‘bridges’ a dimension and fact table. • Preserves contents of dimensions and facts in raw form. • Solving the previously discussed problems of the recursive solution. JSOM, UT Dallas 8 Organization Dimension Organization Key (PK) Organization Name Organization Location … Organization Map Bridge Parent Organization Key (FK) Child Organization Key (FK) Depth from Parent Highest Parent Flag Lowest Child Flag General Ledger Fact Account Key (FK) Organization Key (FK) … … Amount Balance
  • 9. Bridge Table - Structure • Record whole rollup structure • Define its grain as each path in the tree JSOM, UT Dallas 9 1 2 5 3 4 Parent Key Child Key Depth from parent Highest parent flag Lowest child flag 1 1 0 Y N 1 2 1 Y N 1 3 2 Y Y 1 4 2 Y Y 1 5 1 Y Y 2 2 0 N N 2 3 1 N Y 2 4 1 N Y 3 3 0 N Y 4 4 0 N Y 5 5 0 N Y
  • 10. Bridge Table – Shared ownership variant • Department 4 outsources 60% of its work to another department 5. • Example of a shared ownership. JSOM, UT Dallas 10 1 2 5 3 4 Parent Key Child Key Depth from parent Highest parent flag Lowest child flag Owners hip Percent 1 1 0 Y N 1 2 1 Y N 1 3 2 Y Y 1 4 2 Y Y 1 5 1 Y Y 2 2 0 N N 2 3 1 N Y 2 4 1 N Y 40% 3 3 0 N Y 4 4 0 N Y 5 5 0 N Y 5 4 1 N Y 60%
  • 11. JSOM, UT Dallas 11 Bridge Table – Shared ownership variant • Department 4 outsources 60% of its work to another department 5. • Example of a shared ownership. JSOM, UT Dallas 11 1 2 5 3 4 Parent Key Child Key Depth from parent Highest parent flag Lowest child flag Ownership Percent 1 1 0 Y N 1 2 1 Y N 1 3 2 Y Y 1 4 2 Y Y 1 5 1 Y Y 2 2 0 N N 2 3 1 N Y 2 4 1 N Y 40% 3 3 0 N Y 4 4 0 N Y 5 5 0 N Y 5 4 1 N Y 60%
  • 12. JSOM, UT Dallas 12 JSOM, UT Dallas 12 Bridge Table – Shared ownership variant • Department 4 outsources 60% of its work to another department 5. • Example of a shared ownership. JSOM, UT Dallas 12 1 2 5 3 4 Parent Key Child Key Depth from parent Highest parent flag Lowest child flag Ownership Percent 1 1 0 Y N 1 2 1 Y N 1 3 2 Y Y 1 4 2 Y Y 1 5 1 Y Y 2 2 0 N N 2 3 1 N Y 2 4 1 N Y 40% 3 3 0 N Y 4 4 0 N Y 5 5 0 N Y 5 4 1 N Y 60%
  • 13. JSOM, UT Dallas 13 Bridge Table - Advanced • Handle time varying ragged hierarchies JSOM, UT Dallas 13 1 2 5 3 4 1 2 5 3 4 Before 11/01/16 After 11/01/16
  • 14. Bridge Table – Advantages • Offers exceptional flexibility • Accommodates SCD type 2 changes • Accommodates tree structure changes JSOM, UT Dallas 14
  • 15. A quick revisit! JSOM, UT Dallas 15 Problems Solution 1. Slow rollup issues Percent ownership column 2. Multiple parents Begin and end dates 3. Organizational changes Lowest child-flag
  • 16. THANK YOU!   JSOM, UT Dallas 16

Editor's Notes

  1. From the original Dimension table or Fact table, we can’t find out the relationship between organizations. In the future, your boss might ask you to create a report for your department including all the small part. Then how can you aggregate these information? Answer is using Bridge Table Bridge table is a table to connect dimension table and Fact table contain all father-children relationship between organizations. Added : Bridge table preserves the contents of the dimension as well as the fact tables just as they are. Unlike the recursive relationships, where organizations were regarded as SCDs and a change in a parent node carried the risk of altering the entire branch, we don’t have to deal with that problem here.
  2. Take this simple tree structure to explain how does a bridge table work 5 nodes, one root node, 3 leaf nodes, one branch named a node with at least one child Paths, each record presents one path All self reference relationships (5) 1 depth relationships (4) 2 depth relationships (2) 4. Explain the Root flags, Leaf flags in detail. Say if 1,2,3, 4 and 5 are independent orgs. In an enterprise. To find total sales for Org 2, you would have to show total sales of Org 2, Org 3 as well as Org 4.
  3. Shared ownership Note that the 5th row also become a parent to the 4th row since the 5th organization is also a 50 per cent shareholder of the 4th organization. The last highlighted row shows the same.
  4. SCD (Slightly Change Dimension) List down the advantages.