Etl Informatica Training
Etl Informatica Training
Prepared By Babjee
Reviewed By
Version 1
SOURCE Emp TARGET
Schema lab2btrg37 Schema
Colum Name Data Type Transfermations Colum Name
Empno Number(4) Stright Pull/One To One Mapping Empno
Ename Varchar2(40) Stright Pull/One To One Mapping Ename
Job Varchar2(20) Stright Pull/One To One Mapping Job
Mgr Number(4) Stright Pull/One To One Mapping Mgr
Hiredate Date Round(Sysdate-Hiredate)/365,0) Experience
Sal+Com; Check null values in each column,if null
Sal Number(10,2) values replace with zero Total_Salary
Comm Number(10,2)
Deptno Number(2) Stright Pull/One To One Mapping deptno
Note: create source and target table with create1.txt & Example1_pic for mapping
Mapping :M_T_EMP
Session : S_M_T_EM
WORKFLOW: WF_S_M_T_EMP
1. Check source and target tables existance and their data types
2.Check whether job is avaiable to load data to target
3. Execute job and data validation
4. Repeate the process with different set of data
5.Test data validation with Qry1
6.Test source target count with Qry2
7.Test null value validation with Qry3
8.Test Duplicate data with Qry 4
MAPPING DOCUMENT FOR T_EMP TABLE LOAD
T_Emp
Schema
Data Type
Number(4) Qry1
Varchar2(40) (Select empno,ename,job,mgr,deptno,round((sysdate-hiredate)/365,0)
Varchar2(20) Experience, nvl(sal,0)+nvl(comm,0) total_salary from emp
Number(4) minus
Number(4) Select empno,ename,job,mgr,deptno,experience,total_salary from
Number(10,2) t_emp)
union
Number(4) (Select empno,ename,job,mgr,deptno,experience,total_salary from
t_emp
minus
Select empno,ename,job,mgr,deptno,round((sysdate-hiredate)/365,0)
Experience, nvl(sal,0)+nvl(comm,0) total_salary from emp)
Qry2
Count Check Qery
select count(*) from emp
select count(*) from t_emp
Qry3
select 'Empno' ,count(*) as No_of_Null from t_emp where empno is null
union
select 'Ename' ,count(*) as No_of_Null from t_emp where Ename is null
union
select 'Job' ,count(*) as No_of_Null from t_emp where Job is null
union
select 'Mgr' ,count(*) as No_of_Null from t_emp where Mgr is null
union
select 'Experience' ,count(*) as No_of_Null from t_emp where Experience is null
union
select 'deptno' ,count(*) as No_of_Null from t_emp where deptno is null
Qry4
select
Empno,
Ename,
Job,
Mgr,
Experience,
Total_Salary,
deptno,count(*) as no_of_records
from t_emp
group by
Empno,
Ename,
Job,
Mgr,
Experience,
Total_Salary,
deptno having count(*) >1
rience is null