dbTalk Databases Forums  

NULL Values in fact table

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss NULL Values in fact table in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim Chapla
 
Posts: n/a

Default NULL Values in fact table - 05-19-2005 , 05:49 PM






With all of the research I have done, I have come to the conclusion that the
proper way to represent a NULL value in my fact table would be to create an
entry in my dimension table that represents "no value" or NULL or something
like that and then reference the surrogate key in my fact table. I have been
trying to find some specific discussions on the topic so that I can better
argue my case as to why (or why not) to approach it this way, but I am
coming up short.

How have you approached this issue? Are there alternatives to this approach?
What are the pros and cons?

Thanks in advance for your response.



tim




Reply With Quote
  #2  
Old   
Jesse O
 
Posts: n/a

Default Re: NULL Values in fact table - 05-20-2005 , 12:16 PM






I've usually seen it done using a -1. Every dimensional table we have has
a -1 member named "unknown".

Same idea...however I'd replace the NULL's with a -1 in your ETL process. If
you're building your warehouse directly off your transaction system I'd
build a view on top of your fact table and use an isnull. NULL's can do
weird things.

This is, of course, assuming the NULL's are a dimension.


"Tim Chapla" <tchapla (AT) nospam (DOT) com> wrote

Quote:
With all of the research I have done, I have come to the conclusion that
the proper way to represent a NULL value in my fact table would be to
create an entry in my dimension table that represents "no value" or NULL
or something like that and then reference the surrogate key in my fact
table. I have been trying to find some specific discussions on the topic
so that I can better argue my case as to why (or why not) to approach it
this way, but I am coming up short.

How have you approached this issue? Are there alternatives to this
approach? What are the pros and cons?

Thanks in advance for your response.



tim






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.