Re: Type 2 SCD Question



Simply group by the name of the sales person.
if you group all the sales for Bob you'll have all the sales for Bob for all the territories where Bob was.

or you can group by the natural key (not the SCD surrogate key) if Bob's name changes over the time (his natural key don't change but the name can)

in a datawarehouse database you certainly have the right indexes to do this calculation quickly.

if this type of queries is common for you, try to use indexed views or cubes.


"JP" <JP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:A5BF1138-6F60-4276-AC55-14ADD36B7AD5@xxxxxxxxxxxxxxxx
In designing a data warehouse I understand the importance of the
dimension/fact relationship. I also understand why you would need type 2
dimensions.

The example I have seen over and over again demonstrates when a sales person
changes sales territories. Here you would need a type 2 dimension so that
the person's sales figures relate to the territory.

What happens when I want to get total sales for a person irrespective of the
sales terriroty? (Basically all sales attributed to one sales person). If a
sales person never left a sales region you could sum up all sales. But, if a
sales person left a sales region there would be fact records relating to the
person with more than one surrogate key. (When the sales person changes
territories a new record is added to the sales person dimension and the new
surrogate key is used to map to the facts).


.



Relevant Pages

  • Secondary Y-Axis -- Positioning of Plotted Data
    ... My Y-Axis will consist of Sales Revenue for Tom, Mary, and Bob for ... The Sales Revenue will be listed for each person. ...
    (microsoft.public.excel.charting)
  • Re: MJ: Whose death would be bigger?
    ... Clearly the reaction was about his impact on our lives, not so much his commercial sales. ... look at all his gold and platinum records, ... last night to cover the news in prime time. ... For Bob, it is more likely that we'll get another special on PBS. ...
    (rec.music.dylan)
  • Re: Double Vision - Tridia.
    ... >> was replaced by DoubleVision Pro. ... Give their sales dept. a call and ... I suspect the company may have met an untimely demise. ... Bob ...
    (comp.unix.sco.misc)
  • Re: Before you rush to criticise Bobs Christmas In the Heart...
    ... Christmas In The Heart is Bob Dylan?s 47th album. ... royalties from sales of these recordings will be donated to Feeding ...
    (rec.music.dylan)
  • Re: Slowly Changing Dimension - AS 2000, can anyone help please!!
    ... a SCD dimension represent a customer for a point in time. ... So there is no need to add any time information around this dimension. ... simply use your default time dimension to display historical sales. ... You don't have to join anything else except your surrogate key. ...
    (microsoft.public.sqlserver.olap)

Loading