SergeS
MIS
- Aug 14, 2002
- 28
My mind is tired...
Let's say I have 4 database tables: Entity, BusinessGroup Division and Department.
Conceptually, there are two possible hierarchies:
Entity
BusinessGroup
Division
Department
and
Entity
Division
Department
so there are divisions which relate directly to an Entity and divisions which relate via a BusinessGroup to an Entity.
The following relationships exist:
Entity - BusinessGroup
Entity - Division
BusinessGroup - Division
Division - Department
In my reports I want to report all Entities along with the Divisions that belong (either directly or indirectly) to those Entities and vice versa.
I don't know how to solve the loop between Entity - BusinessGroup and Division. Using contexts in a way that requires user interaction at report level is not an option in my project situation.
Should I make hierachies, should I use aliases, should I generate database views...I've tried a lot but I wasn't able to create THE solution.
I think my biggest problem is that the two relationships Division - Entity and Division - BusinessGroup is an exlusive or and I don't know how to handle that!
Suggestions?
Let's say I have 4 database tables: Entity, BusinessGroup Division and Department.
Conceptually, there are two possible hierarchies:
Entity
BusinessGroup
Division
Department
and
Entity
Division
Department
so there are divisions which relate directly to an Entity and divisions which relate via a BusinessGroup to an Entity.
The following relationships exist:
Entity - BusinessGroup
Entity - Division
BusinessGroup - Division
Division - Department
In my reports I want to report all Entities along with the Divisions that belong (either directly or indirectly) to those Entities and vice versa.
I don't know how to solve the loop between Entity - BusinessGroup and Division. Using contexts in a way that requires user interaction at report level is not an option in my project situation.
Should I make hierachies, should I use aliases, should I generate database views...I've tried a lot but I wasn't able to create THE solution.
I think my biggest problem is that the two relationships Division - Entity and Division - BusinessGroup is an exlusive or and I don't know how to handle that!
Suggestions?