Question on Dimenstion refernece to another dimension.
2 posters
Page 1 of 1
Question on Dimenstion refernece to another dimension.
I am trying to Add a PersonIncdient Dimension And Claims fact table as shown below:
Dimension
PersonIncident
PersonIncidentKey
AffectedPersonId
IncidentId
[CostCenterKey] <== Not Yet Added
Fact
Claims
PersonincidentKey
DateKey
[CostCenterKey] <== Not Yet Added
I have an existing Dimension CostCenter which in the operational table has a foreign key to the PersonIncident Table.
I was wondering if I should make the Foreign key directly to the fact table from cost center or should I keep the Cost Center Dimension foreign key reference in the PersonIncident Dimension ? A person Record can only be associated to one cost center so I think I could answer the same questions either way. I was trying to avoid snowflaked dimensions if possible.
So I wasn't sure what the tradeoffs are of going one route vs another, especially performance wise ?
Thank you.
Dimension
PersonIncident
PersonIncidentKey
AffectedPersonId
IncidentId
[CostCenterKey] <== Not Yet Added
Fact
Claims
PersonincidentKey
DateKey
[CostCenterKey] <== Not Yet Added
I have an existing Dimension CostCenter which in the operational table has a foreign key to the PersonIncident Table.
I was wondering if I should make the Foreign key directly to the fact table from cost center or should I keep the Cost Center Dimension foreign key reference in the PersonIncident Dimension ? A person Record can only be associated to one cost center so I think I could answer the same questions either way. I was trying to avoid snowflaked dimensions if possible.
So I wasn't sure what the tradeoffs are of going one route vs another, especially performance wise ?
Thank you.
mru22- Posts : 34
Join date : 2011-06-14
Re: Question on Dimenstion refernece to another dimension.
I would make person and incident independent dimensions off the fact. The fact table would naturally infer the person and incident relationship.
Re: Question on Dimenstion refernece to another dimension.
How about the Cost Center ? Since it was originally a foreign key in the Person, Should I key it into the fact directly as well ?
mru22- Posts : 34
Join date : 2011-06-14
Similar topics
» Question about using date dimension keys in other dimension tables
» Question on breaking out Degenerate Dimension to separate dimension
» Dimension Question
» Conformed Dimension Question
» Product Dimension Question
» Question on breaking out Degenerate Dimension to separate dimension
» Dimension Question
» Conformed Dimension Question
» Product Dimension Question
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|