History in separate table? Yes or no?

View previous topic View next topic Go down

History in separate table? Yes or no?

Post  revdpoel on 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

View user profile

Back to top Go down

Re: History in separate table? Yes or no?

Post  ngalemmo on 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?
avatar
ngalemmo

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

View user profile http://aginity.com

Back to top Go down

Re: History in separate table? Yes or no?

Post  BoxesAndLines on Sun Jun 10, 2012 10:47 pm

I'll answer that, one table.
avatar
BoxesAndLines

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

View user profile

Back to top Go down

Re: History in separate table? Yes or no?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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