Documente Academic
Documente Profesional
Documente Cultură
Business Requirement:
This mapping demonstrates how to build a SCD type-2 mapping in Informatica Developer
Solution URL:
https://community.informatica.com/solutions/2450
Description:
When loading a data warehouse, design decision around how a dimension table is updated
is important. Dimensions can be designed to update existing rows with changes maintaining
no history (Type 1) or to maintain history (Type 2).
The target table keeps a full history of changes in the target by date range. While loading a
Type 2 target, all new rows are inserted. If an incoming row is evaluated to be an update to
an existing row, then a row is inserted along with an update to the previous version of the
row.
Mapping
Source File.
Script for creating target.
4. The mapping inserts the row if the record does not exist.
5. In case of update a new record will be inserted and the old records Effect_to_Date
will get updated.
6. Assign Oracle connection object for the source and target.
7. Place the source file in SourceDir.
8. Validate and Run the Mapping.
Please rate this solution and share your feedback on Marketplace Website.