Are dates degenerated dimensions?
3 posters
Page 1 of 1
Are dates degenerated dimensions?
Hi,
Am I allowed to look at date dimensions as like a degenerated dimensions or do I need always to have a surrogate key for them?
Regards,
Evgeni
Am I allowed to look at date dimensions as like a degenerated dimensions or do I need always to have a surrogate key for them?
Regards,
Evgeni
evgeninikolov- Posts : 6
Join date : 2012-07-10
Re: Are dates degenerated dimensions?
A degenerate dimension is a source system identifier with no describing attributes used to group facts. That is not the purpose of a date. Add the foreign key.
BoxesAndLines- Posts : 1212
Join date : 2009-02-03
Location : USA
Re: Are dates degenerated dimensions?
evgeninikolov wrote:Hi,
Am I allowed to look at date dimensions as like a degenerated dimensions or do I need always to have a surrogate key for them?
Regards,
Evgeni
What does your date dimension look like? It should contain a lot of things, such as month labels, day of week, fiscal calendar data, and so on. The question is, does the date you are trying to store need these attributes? If it does, then store a FK to the date dimension. If it is something like an effective date that would only ever be used as a date to filter selections, then you can just store the date itself as a degenerate dimension.
Re: Are dates degenerated dimensions?
ngalemmo wrote:
What does your date dimension look like? It should contain a lot of things, such as month labels, day of week, fiscal calendar data, and so on. The question is, does the date you are trying to store need these attributes? If it does, then store a FK to the date dimension.
Yeah, it is a full blown date dimension :-( And since the fiscal year is different than the calendar year I need those attributes. OK, so the decision is taken! I think that the main argument is that there should be a special values for invalid or infinite dates as AFAIK null values and outer joins are not permited in the dimensional modelling.
evgeninikolov- Posts : 6
Join date : 2012-07-10
Similar topics
» Dates in many dimensions
» Dealing with empty/missing dates in dimensions
» Start and Finish dates and role-playing dimensions
» Dimensions with effective and end dates - best design and best way to join to fact tables?
» Fact with eff / exp dates referencing dimension with eff / exp dates
» Dealing with empty/missing dates in dimensions
» Start and Finish dates and role-playing dimensions
» Dimensions with effective and end dates - best design and best way to join to fact tables?
» Fact with eff / exp dates referencing dimension with eff / exp dates
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum