dbTalk Databases Forums  

Newbie MDX Date

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


Discuss Newbie MDX Date in the microsoft.public.sqlserver.olap forum.



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

Default Newbie MDX Date - 12-05-2003 , 11:27 AM






In TSQL, we can select data in a specified date range,
such as (DB:Northwind)

SELECT * FROM Employees
WHERE Hiredate > ='01/01/1988'
AND Hiredate < ='12/31/1998'

How to define the date range in MDX in the date demension:
.. > ='01/01/1988'
.. <='12/31/1998'

Reply With Quote
  #2  
Old   
Michael Morse
 
Posts: n/a

Default Re: Newbie MDX Date - 12-05-2003 , 11:38 AM






specify a set using the range operator which separates two tuples using a
colon ':'

{[Time].[1998]:[Time].[2003]}

"John Chen" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
In TSQL, we can select data in a specified date range,
such as (DB:Northwind)

SELECT * FROM Employees
WHERE Hiredate > ='01/01/1988'
AND Hiredate < ='12/31/1998'

How to define the date range in MDX in the date demension:
.. > ='01/01/1988'
.. <='12/31/1998'



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.