dbTalk Databases Forums  

Tough OLAP Design Question

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


Discuss Tough OLAP Design Question in the microsoft.public.sqlserver.olap forum.



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

Default Tough OLAP Design Question - 05-05-2004 , 07:31 PM






How do I create an OLAP cube in Microsoft SQL 2000 Analysis service
which will generate the following types of data for a report

Here are the source tables (in SQL 2000)
Note: not all fields are listed

SURVE
--------
(PK) Survey_ID in
Survey_Name varchar(200

QUESTION
-----------
(PK) Question_ID in
Question_Name varchar(200

ANSWER
-----------
(PK) Answer_ID in
Answer_Choice_Text varchar(200
Answer_Value in

RESPONDENTS_ANSWER
--------------
(PK)Respondent_ID in
(PK)Question_ID in
(PK)Answer_ID in

I want to build reports which crosstab the count of respondent answer
against respondent answers of a different question

For example:
Question 1) Do you watch the NBA
-Yes
-N

Question 2) What is your favorite NBA Team
-Mav
-Laker
-King
-Spur

Here is the report I want to create via OLAP in SQL 2000 Analysis Services

What is your favorite team
Mavs Lakers Kings Spurs Tota
----- --- --- --- --- --
Do you Yes 5 5 5 5 2
watch NBA? No 10 2 1 2 1
----- --- --- --- --- --
Total 15 7 6 7 3

So far, I have my fact table as Respondent_Answers, and a dimensio
that includes: Survey/Questions/Answers. I need to somehow hav
another dimension which includes Survey/Questions/Answers which I ca
crosstab the actual Respondent_Values, or someting. Please help

The goal is to have the capability to crosstab any question vs an
other question. I'm looking for a solution to compare 2 stati
questions

Thanks
-Jonathan

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 - 2013, Jelsoft Enterprises Ltd.