Degenerate Dimensions
2 posters
Page 1 of 1
Degenerate Dimensions
Hi there,
I have come across a situation where my Fact table contains a degenerate 'Claim Number' column. This is fine, but I have discovered that some of the incoming data to populate my fact table do not have a claim number. How should I handle this situation? I don't want to fill my fact table with 'N/A', are there any other suggestions to handle this?
Thanks.
I have come across a situation where my Fact table contains a degenerate 'Claim Number' column. This is fine, but I have discovered that some of the incoming data to populate my fact table do not have a claim number. How should I handle this situation? I don't want to fill my fact table with 'N/A', are there any other suggestions to handle this?
Thanks.
memphis- Posts : 19
Join date : 2010-10-21
Re: Degenerate Dimensions
Depends on which database system you are using.
If it is Oracle, it will interpret a blank value as null, which messes up joins if you are combining data from multiple facts with claim number as one of the dimensions. So, you should set it to some constant... "N/A", "?" or whatever the business suggests.
Other database systems would allow you to set it to "" or " " and not interpret it as null. In which case it doesn't matter.
If it is Oracle, it will interpret a blank value as null, which messes up joins if you are combining data from multiple facts with claim number as one of the dimensions. So, you should set it to some constant... "N/A", "?" or whatever the business suggests.
Other database systems would allow you to set it to "" or " " and not interpret it as null. In which case it doesn't matter.
Similar topics
» Too many degenerate dimensions?
» many degenerate dimensions to one fact
» Common attributes across multiple facts
» Surrogate keys for degenerate dimensions?
» Bridge Table and Degenerate Dimensions
» many degenerate dimensions to one fact
» Common attributes across multiple facts
» Surrogate keys for degenerate dimensions?
» Bridge Table and Degenerate Dimensions
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum