dbTalk Databases Forums  

getting back keys in a query &[] stuff

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


Discuss getting back keys in a query &[] stuff in the microsoft.public.sqlserver.olap forum.



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

Default getting back keys in a query &[] stuff - 10-13-2004 , 05:52 PM






I have to get data from this cube

select { [RunningTotal] }
on Columns, NON EMPTY { [CO INFO].&[10].children } on Rows from
[consumer]

so i get
RunningTotal CompanyID DeptID EmpID
500 Intel IT Dan


But I really want
RunningTotal CompanyID DeptID EmpID
500 10 5 20113

Any way?





Reply With Quote
  #2  
Old   
Matthias
 
Posts: n/a

Default Re: getting back keys in a query &[] stuff - 10-14-2004 , 02:38 AM






A member / level always has intrinsic properties like KEY, NAME and ID. By
including them in your query you should be able to display the key:

select { [RunningTotal] } on Columns,

NON EMPTY { [CO INFO].&[10].children } dimension properties [CO
Info].[<levelname>].[ID] on Rows

from
[consumer]


"Cindy Lee" <cindylee (AT) hotmail (DOT) com> schrieb im Newsbeitrag
news:eLZRtdXsEHA.3412 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Quote:
I have to get data from this cube

select { [RunningTotal] }
on Columns, NON EMPTY { [CO INFO].&[10].children } on Rows from
[consumer]

so i get
RunningTotal CompanyID DeptID EmpID
500 Intel IT Dan


But I really want
RunningTotal CompanyID DeptID EmpID
500 10 5 20113

Any way?







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.