dbTalk Databases Forums  

OUTER JOIN in cube

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


Discuss OUTER JOIN in cube in the microsoft.public.sqlserver.olap forum.



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

Default OUTER JOIN in cube - 03-08-2005 , 03:59 AM






I have some ORG dimension with several levels (Country, Organization,
Operator). Fact table contains OrganisationId and OperatorId. OrganisationId
in Fact table always NOT NULL while OperatorId sometimes contains NULL
values. I join facts with dimension by OrganisationId and OperatorId. In
case OperatorId is NULL I miss facts. How can I get these facts at such
cases only by OrganisationId, while in other cases I get them by OperatorId?



Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: OUTER JOIN in cube - 03-08-2005 , 05:36 AM






I recommend adding a dummy key according to NULL. The key can be unique at
its level by itself or by being concatenated with its parent key. (Here,
OrganizationID?) Or you can make the key have the same value as its parent
depending on the business situation.

FYI, it's better to avoid multiple parallel joins between the dimension and
fact tables, although Analysis Services supports it without problems.

Ohjoo Kwon


"gNM" <gedukas99 (AT) hotmail (DOT) com> wrote

Quote:
I have some ORG dimension with several levels (Country, Organization,
Operator). Fact table contains OrganisationId and OperatorId.
OrganisationId
in Fact table always NOT NULL while OperatorId sometimes contains NULL
values. I join facts with dimension by OrganisationId and OperatorId. In
case OperatorId is NULL I miss facts. How can I get these facts at such
cases only by OrganisationId, while in other cases I get them by
OperatorId?





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.