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

History in separate table? Yes or no?

3 posters

Go down

History in separate table? Yes or no? Empty History in separate table? Yes or no?

Post  revdpoel Sat Jun 09, 2012 10:47 am

http://www.freeimagehosting.net/7mbck

click on the link to read the problem

To separate history or not to separate history?

A client consists of one or more entities. These entities always belong to one client and can be ended and then introduced on a later time.
So, i have a dimension client and a dimension entity. Relation client-entity = N:M
Bridge table in between them. Table is called relation.

I want to keep the history of the relation between the two and I also want to keep the history of the client itself and the entities.

I want it to be easy to answer the next questions:
- Which relations did client AA have last december and what WAS the contents of the attributes of client AA and his entities THEN?
- Which relations did client AA have last december and what IS the contents of the attributes of client AA and his entities NOW?

What is best?
Putting current and history data of dimension client in one table or separate it in a current and a history tablel?
Same question for dimension entity



revdpoel

Posts : 24
Join date : 2010-06-11

Back to top Go down

History in separate table? Yes or no? Empty Re: History in separate table? Yes or no?

Post  ngalemmo Sat Jun 09, 2012 2:13 pm

One goal of dimensional warehouse design is ease of use. Is it easier to query one table or construct a UNION SELECT?
ngalemmo
ngalemmo

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

http://aginity.com

Back to top Go down

History in separate table? Yes or no? Empty Re: History in separate table? Yes or no?

Post  BoxesAndLines Sun Jun 10, 2012 10:47 pm

I'll answer that, one table.
BoxesAndLines
BoxesAndLines

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

Back to top Go down

History in separate table? Yes or no? Empty Re: History in separate table? Yes or no?

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