dbTalk Databases Forums  

How To Structure?

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


Discuss How To Structure? in the microsoft.public.sqlserver.olap forum.



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

Default How To Structure? - 04-01-2004 , 11:06 AM






We would like to analyze student test score data as well as strand score
data.
Sample data may look like this:

Math Test Raw Score: 1590 (Test)
Shapes: 250 (Strand)
Spaces: 185 (Strand)
Measurements: 284 (Strand)

Problem: There is a random number of strands between zero and ten. We are
wondering how to model this process. Is there a way to analyze this
information in one fact table so that we can see score and strand
information?

sample_fact_table (horizontal)
----------------------------------
raw_score | strand_1 | strand_2 | strand_[n]
1590 | 250 | 185 | 284

sample_fact_table (vertical)
----------------------------------
raw_score
1590
250
185
285






Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: How To Structure? - 04-01-2004 , 01:50 PM






I don't know what "strand" is, but in the abstract you might consider a
normalized design where rather than having columns in the fact table for
Strand0 - Strand10, instead have a StrandNo column and use it as the basis
for a Strand dimension.

public @ the domain below
www.tomchester.net

"Rick" <bob (AT) bob (DOT) net> wrote

Quote:
We would like to analyze student test score data as well as strand score
data.
Sample data may look like this:

Math Test Raw Score: 1590 (Test)
Shapes: 250 (Strand)
Spaces: 185 (Strand)
Measurements: 284 (Strand)

Problem: There is a random number of strands between zero and ten. We are
wondering how to model this process. Is there a way to analyze this
information in one fact table so that we can see score and strand
information?

sample_fact_table (horizontal)
----------------------------------
raw_score | strand_1 | strand_2 | strand_[n]
1590 | 250 | 185 | 284

sample_fact_table (vertical)
----------------------------------
raw_score
1590
250
185
285








Reply With Quote
  #3  
Old   
Rick
 
Posts: n/a

Default Re: How To Structure? - 04-01-2004 , 03:49 PM



Can you expand on this? I can't visualize it. I was thinking of a
parent-child dimension for the unbalanced nature. Does that make sense?


"Tom Chester" <nospam_public (AT) tomchester (DOT) net> wrote

Quote:
I don't know what "strand" is, but in the abstract you might consider a
normalized design where rather than having columns in the fact table for
Strand0 - Strand10, instead have a StrandNo column and use it as the basis
for a Strand dimension.

public @ the domain below
www.tomchester.net

"Rick" <bob (AT) bob (DOT) net> wrote in message
news:106ofbd803o6c59 (AT) corp (DOT) supernews.com...
We would like to analyze student test score data as well as strand score
data.
Sample data may look like this:

Math Test Raw Score: 1590 (Test)
Shapes: 250 (Strand)
Spaces: 185 (Strand)
Measurements: 284 (Strand)

Problem: There is a random number of strands between zero and ten. We
are
wondering how to model this process. Is there a way to analyze this
information in one fact table so that we can see score and strand
information?

sample_fact_table (horizontal)
----------------------------------
raw_score | strand_1 | strand_2 | strand_[n]
1590 | 250 | 185 | 284

sample_fact_table (vertical)
----------------------------------
raw_score
1590
250
185
285










Reply With Quote
  #4  
Old   
Tom Chester
 
Posts: n/a

Default Re: How To Structure? - 04-02-2004 , 12:26 PM



It's hard to give sound advice with sketchy knowledge. That said, instead of
your fact table containing columns Strand1, Strand2, etc, it would contain
one column - StrandID -- containing a value of 0-10 (or whatever). This
column would be the basis for a Strand dimension. This removes "repeating
groups" from the fact table design, and does not require a re-design if/when
Strand11 emerges.

Again, I don't know what strand is, the suggestion (to consider) is in the
abstract.

public @ the domain below
www.tomchester.net

"Rick" <bob (AT) bob (DOT) net> wrote

Quote:
Can you expand on this? I can't visualize it. I was thinking of a
parent-child dimension for the unbalanced nature. Does that make sense?


"Tom Chester" <nospam_public (AT) tomchester (DOT) net> wrote in message
news:VvZac.89$D12.31307 (AT) news (DOT) uswest.net...
I don't know what "strand" is, but in the abstract you might consider a
normalized design where rather than having columns in the fact table for
Strand0 - Strand10, instead have a StrandNo column and use it as the
basis
for a Strand dimension.

public @ the domain below
www.tomchester.net

"Rick" <bob (AT) bob (DOT) net> wrote in message
news:106ofbd803o6c59 (AT) corp (DOT) supernews.com...
We would like to analyze student test score data as well as strand
score
data.
Sample data may look like this:

Math Test Raw Score: 1590 (Test)
Shapes: 250 (Strand)
Spaces: 185 (Strand)
Measurements: 284 (Strand)

Problem: There is a random number of strands between zero and ten. We
are
wondering how to model this process. Is there a way to analyze this
information in one fact table so that we can see score and strand
information?

sample_fact_table (horizontal)
----------------------------------
raw_score | strand_1 | strand_2 | strand_[n]
1590 | 250 | 185 | 284

sample_fact_table (vertical)
----------------------------------
raw_score
1590
250
185
285












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.