Kimball Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

two facts that relate via degenerate dimension

3 posters

Go down

two facts that relate via degenerate dimension Empty two facts that relate via degenerate dimension

Post  kevintxu Tue May 11, 2010 9:38 pm

Hi,

I have a order line fact which look like this:

Order Line Fact
-------------
Order Line Key (SK)
Order Line number (DD)
Order Number (DD)
Some measure (fact)

Now some time later I have another fact which would reference the Order Number (DD) of the above table. How would I establish the reference? Would I have a FK in the new fact pointing to Order Dnumber of the old fact?

Thanks.

kevintxu

Posts : 1
Join date : 2010-05-11

Back to top Go down

two facts that relate via degenerate dimension Empty Re: two facts that relate via degenerate dimension

Post  BoxesAndLines Tue May 11, 2010 10:16 pm

You probably already have an index on your DD, so really, you don't have to do anything else.
BoxesAndLines
BoxesAndLines

Posts : 1212
Join date : 2009-02-03
Location : USA

Back to top Go down

two facts that relate via degenerate dimension Empty Re: two facts that relate via degenerate dimension

Post  ngalemmo Wed May 12, 2010 12:32 pm

As B&L stated, your fine.

You need to put aside ER modeling concepts when dealing with a dimensional model. In a dimensional model a fact table has relationships to dimension tables (and the occasional bridge table) only. Since a degenerate dimension is a dimension, its all good.

Now, different fact tables will have dimensions in common (conforming dimensions). And information in one fact table can be combined with information in another fact table along common dimensions, but there is no concept of a FK relationship between facts. And, to carry this a bit further, the relationship between facts with conforming dimensions is NOT based on the dimensional keys, but rather the ATTRIBUTES in the dimension.
ngalemmo
ngalemmo

Posts : 3000
Join date : 2009-05-15
Location : Los Angeles

http://aginity.com

Back to top Go down

two facts that relate via degenerate dimension Empty Re: two facts that relate via degenerate dimension

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum