Kimball Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Need help with Bridge Table Design for: 1) Ragged-Hierarchy 2) Parent Nodes can be used more than once.

2 posters

Go down

Need help with Bridge Table Design for: 1) Ragged-Hierarchy 2) Parent Nodes can be used more than once. Empty Need help with Bridge Table Design for: 1) Ragged-Hierarchy 2) Parent Nodes can be used more than once.

Post  ian.coetzer Tue Sep 20, 2011 2:58 pm

Hi,

I need some advice designing a dimensional model with a bridge table to cater for a hierarchy:

1) Ragged - Hierarchy (depth unknown):
Need help with Bridge Table Design for: 1) Ragged-Hierarchy 2) Parent Nodes can be used more than once. E2

2) Parent Nodes - as well as Leaf Nodes could be repeated at different levels:
Need help with Bridge Table Design for: 1) Ragged-Hierarchy 2) Parent Nodes can be used more than once. E1


ian.coetzer
ian.coetzer

Posts : 57
Join date : 2010-05-31
Age : 44
Location : South Africa

Back to top Go down

Need help with Bridge Table Design for: 1) Ragged-Hierarchy 2) Parent Nodes can be used more than once. Empty Re: Need help with Bridge Table Design for: 1) Ragged-Hierarchy 2) Parent Nodes can be used more than once.

Post  ngalemmo Tue Sep 20, 2011 3:17 pm

Having children with multiple parents is not a difficult issue, a bill of materials hierarchy is like that. But having a parent with different children isn't allowed.

In your example, (3)C is two different things: one has children 8,5 and the other 5,6. They need to be treated as different parents with their own identity (key). If the hierarchy key is a discriminator, it needs to be part of the keys shown in example 2.
ngalemmo
ngalemmo

Posts : 3000
Join date : 2009-05-15
Location : Los Angeles

http://aginity.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum