dbTalk Databases Forums  

Crossjoin

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


Discuss Crossjoin in the microsoft.public.sqlserver.olap forum.



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

Default Crossjoin - 10-21-2003 , 09:18 AM






Hi,

I'd like to know how to write a query that gives a result like the query
below:

select
crossjoin ( [Product].[Product Family].members, [Product].[Product
Name].members )
on columns
from sales

Can anyone help me?
Thanks


--
Alessandro Turroni
Gruppo Pro spa
Alessandro.Turroni (AT) gruppopro (DOT) it



Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Crossjoin - 10-21-2003 , 12:12 PM






Since a dim can't be crossjoined with itself, you would have to create a
separate dimension (perhaps virtual) based on one of the two levels.

tom @ the domain below
www.tomchester.net


"Alessandro Turroni" <alessandro.turroni (AT) gruppopro (DOT) it> wrote

Quote:
Hi,

I'd like to know how to write a query that gives a result like the query
below:

select
crossjoin ( [Product].[Product Family].members, [Product].[Product
Name].members )
on columns
from sales

Can anyone help me?
Thanks


--
Alessandro Turroni
Gruppo Pro spa
Alessandro.Turroni (AT) gruppopro (DOT) it





Reply With Quote
  #3  
Old   
Michael Shao [MSFT]
 
Posts: n/a

Default RE: Crossjoin - 10-22-2003 , 03:42 AM



Hi Alessandro,

I would like to thank Tom for his help. As I understand, we are not able
to crossjoin levels from the same dimension. If you want members from both
levels to be returned, then just ask for them both without the crossjoin
function.

For additional information regarding this issue, please refer to the
following article:

http://groups.google.com/groups?hl=e...readm=%23qXB88
1oBHA.2180%40tkmsftngp07&rnum=3&prev=/groups%3Fq%3D%2522duplicate%2Bdimensio
ns%2Bacross%2B(independent)%2Baxes%2522%2Band%2Bcr ossjoin%26hl%3Den%26lr%3D%
26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D%2523qXB881oBHA.2180%2540tkmsftngp07%26 rn
um%3D3

Please feel free to post in the group if this solves your problem or if you
would like further assistance.

Regards,

Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


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.