dbTalk Databases Forums  

Left Join support in Cube Editor

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


Discuss Left Join support in Cube Editor in the microsoft.public.sqlserver.olap forum.



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

Default Left Join support in Cube Editor - 08-28-2005 , 02:26 PM






How do I convince the cube editor to perform a left join (instead of the
standard inner join). I have used views in some instances, but that's not
conducive to having good shared dimenions.

Any ideas appreciated.


Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: Left Join support in Cube Editor - 08-28-2005 , 02:51 PM






left join is not supported.

you have to create a view which return a value instead-iof a null value. and
use this view as the fact table

like:
select tbla.col1, tbla.col2, isnull(tblB.col3, -1) as NewCol
from table1 tbla left join table2 tblB
on tbla.col4 = tblB.col1

then make sure that your dimension linked to the NewCol contain a -1 value.
(which could be an unknown member in the dimension)


"Default User" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
How do I convince the cube editor to perform a left join (instead of the
standard inner join). I have used views in some instances, but that's not
conducive to having good shared dimenions.

Any ideas appreciated.


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.