Home | Contact Us | Sitemap
DWHlabs provides Data Warehouse education services.This web portal is very useful to the Database professionals,
Data Warehouse professionals, UNIX professionals etc.,
  About Us Advertise Support us Tell your Fren Testimonial Contact Us  
 
 
Please help us continue development of this website and it's services!
 
 

 


 
DWHlabs- ETL TOOL
Sponsered Links
 
 
MAPPINGS PAGE - SLOWLY CHANGING DIMENSION
 
TYPE3 : KEEP CURRENT AND PREVIOUS VALUES IN TARGET
 
 
  Next

1.SOURCE

Source is imported from thedatabase.Here EMP table takesn as source.

2.SOURCE QUALIFIER

The data from sourse is passed to Source Qualifier. Here source datatypes are converted into Informatice data types.It has got outp[ut ports to pass data to the respective tranformation.Here , the values are passed into the lookup tranformation.

3.LOOKUP TRANFORMATION(LKP_Getdata)

Analyse the rows that dont update in any case(preferably the primary or composite keys) . These values are to be defined again in new ports with new names. Here in the above example, empno,ename and hiredate are defined as IN_EMPNO,IN_ENAME and IN_HIREDATE.Map the EMPNO,ENAME,HIREDATE from source qualifier to IN_EMPNO,IN_EMPNAME,IN_HIREDATE in lookup(These the only input ports). A unique key is created in adition to the lookup values.Here PM_Primary key is created.

a)In the properties tab, define the condition . Here we need to define ,
EMPNO=IN_EMPNO, ENAME=IN_ENAME,HIREDATE=IN_HIREDATE

b) Check the other required properties and also check for the connectivity if its a relational data source.

4.EXPRESSION TRANFORMATION (EXP_DetectChanges)

 a) Pass values(except the input values defined in lookup) from Source Qualifier into Expression tranformation(exp_detectchanges). Create two output ports CHANGEDFLAG(integer) and NEWFLAG(integer).Pass the unique key (PM_PrimaryKey) into the exp tranformation and map it . Create the comparison column for all the values (comm,deptno,sal,mgr). Map the lookup values to these comparision keys.

b) pass the lookup PM_primarykey to exp PM_primarykey.

c) Make sure only changed flag and new flag are the only output ports here .

Download
 
  Mapping m_scd3  
  Image of Mapping m_scd3_Img  

 

  Next
DWH 3Colors
CERTIFICATION GUIDE
DATA DICTIONARY
ALL ARTICLES
   
DWH CONCEPTS

DWH Architecture
Types of Schema
Normalization

VS LINKS

OLAP Vs OLTP
Dimension Table Vs Fact Table
Datamart Vs Data Warehouse
Data Mining Vs Web Mining


SHARE KNOWLEDGE

Now viewers can share their information with DWHlabs , please
Click Here.
Please send your feedback
Click Here .
Tell you friend about DWHlabs
Click Here .


Data Warehouse Lab

- ETL TOOL
INFORMATICA
OTHER TOOLS

- REPORTING TOOL

BUSINESS OBJECTS
OTHER TOOLS

Database Lab

- ORACLE
SQL
PL/SQL

- DB2
OTHER TOOLS

Unix Lab

Project Lab

DWH Schools

Books Store



 
  About Us Advertise Support us Tell your Fren Testimonial Contact Us  
© 2008 DWHlabs
Privacy Policy | Terms & Conditions