×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

loading history records into a datawarehosue

loading history records into a datawarehosue

loading history records into a datawarehosue

(OP)
Hi all, we have a mainframe DB2 system that keeps historical data (associative entities) when key informations is changed.

Example: we have dealers that can enroll in programs over time
ID:  system generated id (rowid)
effective date: the date the record became active
term date: the date teh record became inactive (current record will have a date of 12/31/9999)
foriegn key to program code: points to program table
foreign key to the dealer table: points to dealer table
userId: user which made the change
change date: date/time when change was made

we use the same construct for when dealers change districts, regions, district managers etc. and it works well for our mainframe applications.

question: how would i load this into a data warehouse? and what type of dimension would it be. (Dealers would be a dimension table and sales would be our fact table)

some team members would like to create type 2 records everytime the dealer record changes but since we already keep history on key field changes is not better to just load the history tables directly and keep the dealer record as a type 1?
 

RE: loading history records into a datawarehosue

I see two dimensions, Dealer and Program, and one fact table, Sales. In addition, there will be another dimension for Dealer-Program, which contains the programs each dealer was a member of.  The Dealer and Program tables can be denormalized into the Dealer-Program table, or can be lookup tables in a snowflake manner.  

-------------------------
The trouble with doing something right the first time is that nobody appreciates how difficult it was - Steven Wright

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close