1 to many relationship
2 posters
Page 1 of 1
1 to many relationship
I work for a health related insurance company. A member can belong to multiple Groups. A member can have only 1 primary care provider. I am creating a fact table to be used to tell Groups the Frequency at which their members are seeing their provider for maintenance visits regarding their illness. I want to use the same data to tell Providers the Frequency of their patients are coming for maintenance visits.
I figure I have 2 choices: 1) Create a fact table with Member, Group, and Primary Care Provider. Either add a column to weight Members based on the number of Groups they belong to when rolling up the data for Providers (sum Weighted Count) or Count Distinct. Or 2) Created a bridge table with Group and Member and have only the Member and Primary Care Provider. If I create the Bridge Table, I either need to include the Year Month (we are aggregating the data monthly) or create a Begin and End date for the relationship between the Member and Group.
Which option would have the best performance? Option 2 with Begin and End dates feels like the correct answer but I'm wondering if Option 1 would have the best performance. In the Reporting Tool, create "Provider Measures" that multiple the actual measures in the Fact Table by the weighting factor.
I figure I have 2 choices: 1) Create a fact table with Member, Group, and Primary Care Provider. Either add a column to weight Members based on the number of Groups they belong to when rolling up the data for Providers (sum Weighted Count) or Count Distinct. Or 2) Created a bridge table with Group and Member and have only the Member and Primary Care Provider. If I create the Bridge Table, I either need to include the Year Month (we are aggregating the data monthly) or create a Begin and End date for the relationship between the Member and Group.
Which option would have the best performance? Option 2 with Begin and End dates feels like the correct answer but I'm wondering if Option 1 would have the best performance. In the Reporting Tool, create "Provider Measures" that multiple the actual measures in the Fact Table by the weighting factor.
Jeff Smith- Posts : 471
Join date : 2009-02-03
Re: 1 to many relationship
I assume by group you mean employer group. Your first choice is the more traditional enrollment model. You would still have effective dates and weighting factors as you mentioned for you second choice as you still have a member-group relationship. The first structure will perform better than the second. I don't see the need to go beyond that.
Similar topics
» Need an Entity-Relationship (ER) Diagram (that describe the relationship between entities)
» many to many relationship help
» Many to Many to Many relationship
» many to many relationship question
» 1:M relationship between Dims?
» many to many relationship help
» Many to Many to Many relationship
» many to many relationship question
» 1:M relationship between Dims?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum