dbTalk Databases Forums  

Desion Question2

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


Discuss Desion Question2 in the microsoft.public.sqlserver.olap forum.



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

Default Desion Question2 - 09-14-2005 , 02:08 PM






1.TBL_Personal
PersonID -- PK
Gender
Country

2.TBL_PersonalTravelProfile
PersonID -- PK
TravelID -- PK

3.TBL_TravelProfile
TravelID -- PK
QuestionID
ChoiceID

Data for TBL_Personal
1 M USA
2 F USA
3 M Can
4 M USA
5 M USA

TBL_PersonalTravelProfile
1 1
1 6
1 7
2 1
2 2
3 10
3 9
3 1

Data for TBL_TravelProfile
1 100 111
2 100 112
3 100 113
4 100 114
5 100 115
6 200 211
7 200 212
8 200 213
9 200 214
10 200 215

TravelProfile will be a dimension which should look as follows:

Quote:
QuestionID
Choice1
Choice2
TBL_Personal stores the personal profile and is unique by PersonID.
TBL_PersonalTravelProfile stores all the Travel Choices the person has
selected.
Dimensions are Gender, Country and TravelProfile
I want to see count by each dimension. However if I link these tables
directly, Analysis Services creates a inner-join, whereas I want is an outer
join from TBL_Personal to TBL_PersonalTravelProfile.
Basically the count for Person by Gender and/or country should be 5 and by
TravelProfile dimension should be 8 based on the above data.

Any design suggestions for the tables and/or cube. Please remember I will
have over 200 choices for Travel, so I cannot flatten it out.

-Subhash




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.