dbTalk Databases Forums  

Except function

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


Discuss Except function in the microsoft.public.sqlserver.olap forum.



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

Default Except function - 03-05-2004 , 07:29 AM






Hello everybody,

Does the Except function works with sets resulting from a crossjoin ?
Let me explain myself...

I have two sets. Each one have been constructed with a crossjoin function

Set 1 = {(1635,119),(1635,107),(1635,123),(1635,150)}
Set 2 = {(1635,123),(1635,150)}

I would like to obtain this result :
Set Result = {(1635,119),(1635,107)}

I thought I could use the Except function but it doesn't seem to work.
Does anybody have an idea to help me ?

Thanks

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Except function - 03-05-2004 , 12:52 PM






Can you say what dimension members/tuples are involved in cross-joins -
numbers don't provide the whole picture?


- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #3  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Except function - 03-05-2004 , 02:49 PM



Yes, it is supposed to work. I just tried the following query with Foodmart,
and it worked fine:

select Except({(usa, [Unit Sales]), (wa, [Unit Sales]), (usa, [Store
Sales])}, {(usa, [Unit Sales]), (usa, [Store Sales])}) on 0 from sales

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================

"Lauraine" <lrittano (AT) free (DOT) fr> wrote

Quote:
Hello everybody,

Does the Except function works with sets resulting from a crossjoin ?
Let me explain myself...

I have two sets. Each one have been constructed with a crossjoin function

Set 1 = {(1635,119),(1635,107),(1635,123),(1635,150)}
Set 2 = {(1635,123),(1635,150)}

I would like to obtain this result :
Set Result = {(1635,119),(1635,107)}

I thought I could use the Except function but it doesn't seem to work.
Does anybody have an idea to help me ?

Thanks



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.