I'm trying to resolve a complex many-to-many model involving Units and Contracts:
1. Both tables store dimensional and fact related data
2. A unit can have 1 contract (which may be expired or not) or no contract at all
3. In most cases one contract relates to multiple units
4. In the rarest of cases 1 unit could have 2 valid contracts at the same time
My first inclination is to write a complex union covering data from both tables and adding 'correction factor' fields and indicator fields for all possible sets using this as a 'combined' fact..
Any thoughts / alternatives?
Ties Blom
1. Both tables store dimensional and fact related data
2. A unit can have 1 contract (which may be expired or not) or no contract at all
3. In most cases one contract relates to multiple units
4. In the rarest of cases 1 unit could have 2 valid contracts at the same time
My first inclination is to write a complex union covering data from both tables and adding 'correction factor' fields and indicator fields for all possible sets using this as a 'combined' fact..
Any thoughts / alternatives?
Ties Blom