You are on page 1of 3

ibm.

com/developerWorks developerWorks®

• The store dimension has one updated record, and two new records. The
updated record had a Type1 change and the two new records are new
objects to the dimension table.
Change StoreSK ID Name Mgr
No 1 A1113 Stuffy's Jefferson
Change
Update 2 A1114 McStuff Madison
No 5 A1115 Lil Monroe
Change Stuff
New 3 A1111 Stuff Washington
Record
New 4 A1112 MoreStuff Adams
Record

• The fact table has five new records, one for each source record
processed. The surrogate key values in this table correspond to the
current records in the dimension tables.
ProdSK StoreSK SaleAmt SaleUnits
3 3 436.14 13
4 4 456.56 14
1 1 203.38 7
5 2 308.87 2
6 5 24.40 11

The contents of the dimension tables have now changed. If you were to run the job
again, what results would you expect to see? Hint: The dimension tables and the
source file are now in-sync.

This completes the Slowly Changing Dimensions tutorial. To reset the database
tables to their original state, run the zReset executable shortcut .

Conclusion
You can use the Slowly Changing Dimension stage to greatly reduce the time you
spend creating jobs for processing star schemas. In this tutorial you have learned
how to configure the Slowly Changing Dimension stage to process history-tracking
changes and in-place changes to dimension tables. You have also seen how you
can reduce fact table processing by augmenting the source data with associated
dimension table surrogate keys that eliminate the need for an additional lookup.

Manage dimension tables in InfoSphere Information Server DataStage


© Copyright IBM Corporation 2008. All rights reserved. Page 29 of 32
developerWorks® ibm.com/developerWorks

Manage dimension tables in InfoSphere Information Server DataStage


Page 30 of 32 © Copyright IBM Corporation 2008. All rights reserved.
ibm.com/developerWorks developerWorks®

Downloads
Description Name Size Download method
Supporting scripts and DS jobs for this tutorial SCD_Tutorial.zip 16KB HTTP

Information about download methods

Manage dimension tables in InfoSphere Information Server DataStage


© Copyright IBM Corporation 2008. All rights reserved. Page 31 of 32

You might also like