This document describes 10 cases of data loading and transformation using Informatica. Each case loads data from a source to one or more targets based on various filtering conditions or lookups. The cases demonstrate features like filtering records based on conditions, splitting records to multiple targets, adding new columns during transformation, and handling errors.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
399 views9 pages
Informatica: Case Study-1
This document describes 10 cases of data loading and transformation using Informatica. Each case loads data from a source to one or more targets based on various filtering conditions or lookups. The cases demonstrate features like filtering records based on conditions, splitting records to multiple targets, adding new columns during transformation, and handling errors.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9
Case Study-1 Real I nformatica
Arise awake and stop not till the goal is reached
INFORMATICA
Case Study-1 Real I nformatica Arise awake and stop not till the goal is reached
Case1 Load the records which contains SAL>3000 or DEPTNO not in 20& 30 using IF statement. CASE1_SRC
CASE1_TGT EMPNO ENAME SAL DEPTNO
EMPNO ENAME SAL DEPTNO 101 JOHN 2000$ 10
101 JOHN 2000$ 10 102 LINDA 1500$ 20
102 SRINI 3500$ 40 103 HAANE 3000$ 30
105 MARK 4000$ 10 104 SRINI 3500$ 40
105 MARK 4000$ 10
Case2 Load the records, for which the ENAME doesnt have value and DEPTNO as 20 into one target CASE2_TGT1, DEPTNO as 20 and ENAME is having some value into another target CASE2_TGT2. CASE2_SRC
CASE2_TGT1 EMPNO ENAME SAL DEPTNO
EMPNO ENAME SAL DEPTNO 101 JOHN 2000$ 10
102 1500$ 20 102 1500$ 20
107 1700$ 20 103 HAANE 3000$ 30
104 SRINI 3500$ 40
CASE2_TGT2 105 4000$ 10
EMPNO ENAME SAL DEPTNO 106 MICHEL 2000$ 20
106 MICHEL 2000$ 20 107 1700$ 20
108 STEEV 1800$ 20 108 STEEV 1800$ 20
109 JOBS 2900$ 10
110 EVE 3700$ 40
Case3 Load the data as shown below i.e. Insert the rank as per salary of employee without using sorter. CASE3_SRC
CASE3_TGT EMPNO ENAME SAL DEPTNO
EMPNO ENAME SAL DEPTNO RANK 101 JOHN 2000$ 10
105 4000$ 10 1 102 1500$ 20
110 EVE 3700$ 40 2 103 HAANE 3000$ 30
104 SRINI 3500$ 40 3 104 SRINI 3500$ 40
103 HAANE 3000$ 30 4 105 4000$ 10
109 JOBS 2900$ 10 5 106 MICHEL 2000$ 20
101 JOHN 2000$ 10 6 107 1700$ 20
106 MICHEL 2000$ 20 7 108 STEEV 1800$ 20
108 STEEV 1800$ 20 8 109 JOBS 2900$ 10
107 1700$ 20 9 110 EVE 3700$ 40
102 1500$ 20 10 Case Study-1 Real I nformatica Arise awake and stop not till the goal is reached
Case4 Load the data as shown below. CASE4_SRC
EMPNO ENAME ACCOUNT JAN FEB MAR APR MAY 101 JOHN SALARY 2000$ 3000$ 4000$ 2500$ 1700$ 102 MARK EXPENSES 1500$ 2000$ 2500$ 3000$ 1500$
Target: CASE4_TGT EMPNO ENAME ACCOUNT AMOUNT MONTH COUNTRY 101 JOHN SALARY 2000$ 1 USA 101 JOHN SALARY 3000$ 2 CHINA 101 JOHN SALARY 4000$ 3 GERMANY 101 JOHN SALARY 2500$ 4 LOCAL 101 JOHN SALARY 1700$ 5 USA 102 MARK EXPENSES 1500$ 6 USA 102 MARK EXPENSES 2000$ 7 CHINA 102 MARK EXPENSES 2500$ 8 GERMANY 102 MARK EXPENSES 3000$ 9 LOCAL 102 MARK EXPENSES 1500$ 10 USA
Case 5: CASE5_SRC
CASE5_TGT1 EMPNO ENAME SAL DEPTNO
EMPNO ENAME SAL DEPTNO MESSAGE FLAG 101 JOHN 2000$ 10
105 LINDA 4000$ 10 The DEPTNO is 10 10Y 102 DEV 1500$ 20
109 JOBS 2900$ 10 The DEPTNO is 10 10Y 103 HAANE 3000$ 30
101 JOHN 2000$ 10 The DEPTNO is 10 10Y 104 SRINI 3500$ 40
105 LINDA 4000$ 10
CASE5_TGT2 106 MICHEL 2000$ 20
EMPNO ENAME SAL DEPTNO MESSAGE FLAG 107 JACKIE 1700$ 20
106 MICHEL 2000$ 20 The DEPTNO is 20 20Y 108 STEEV 1800$ 20
108 STEEV 1800$ 20 The DEPTNO is 20 20Y 109 JOBS 2900$ 10
107 JACKIE 1700$ 20 The DEPTNO is 20 20Y 110 EVE 3700$ 40
102 DEV 1500$ 20 The DEPTNO is 20 20Y
CASE5_TGT3
EMPNO ENAME SAL DEPTNO MESSAGE FLAG
110 EVE 3700$ 40 The DEPTNO is 30 30Y
104 SRINI 3500$ 40 The DEPTNO is 30 30Y
103 HAANE 3000$ 30 The DEPTNO is 30 30Y
Case Study-1 Real I nformatica Arise awake and stop not till the goal is reached
Case 6: With &without using sequence generator CASE6_SRC
CASE6_TGT EMPNO ENAME SAL DEPTNO
SNO EMPNO ENAME SAL DEPTNO 101 JOHN 2000$ 10
1 101 JOHN 2000$ 10 102 DEV 1500$ 20
2 102 DEV 1500$ 20 103 HAANE 3000$ 30
3 103 HAANE 3000$ 30 104 SRINI 3500$ 40
4 104 SRINI 3500$ 40 105 LINDA 4000$ 10
5 105 LINDA 4000$ 10 106 MICHEL 2000$ 20
6 106 MICHEL 2000$ 20 107 JACKIE 1700$ 20
7 107 JACKIE 1700$ 20 108 STEEV 1800$ 20
8 108 STEEV 1800$ 20 109 JOBS 2900$ 10
9 109 JOBS 2900$ 10 110 EVE 3700$ 40
10 110 EVE 3700$ 40
Case 7: Load the records as shown below. i ,.e a record should got to target only if it passes all the checks/lookups/xref. Matching conditions: 1) CASE7_SRC.DEPTNO= CAS7_XREF_DEPT.DEPTNO 2) CASE7_SRC.EMPNO=CAS7_XREF_EMP.EMPNO CASE7_SRC
CAS7_XREF_DEPT EMPNO ENAME SAL DEPTNO
DEPTNO DNAME LOC 101 JOHN 2000$ 10
10 SALES USA 102 DEV 1500$ 20
20 MARKETING INDIA 103 HAANE 3000$ 30
104 SRINI 3500$ 40
CAS7_XREF_EMP 105 LINDA 4000$ 10
EMPNO DOB ADDRESS 106 MICHEL 2000$ 20
101 JAN KUKATPALLY 107 JACKIE 1700$ 30
102 FEB AMEERPET
103 MAR ABIDS
104 APR KOTI
105 MAY JUBLI
CASE7_TGT1
EMPNO ENAME SAL DEPTNO LOC ADDRESS
101 JOHN 2000$ 10 USA KUKATPALLY
102 DEV 1500$ 20 INDIA AMEERPET
105 LINA 4000$ 10 USA JUBLI
Case Study-1 Real I nformatica Arise awake and stop not till the goal is reached
CASE7_ERR
EMPNO ENAME SAL DEPTNO
103 HAANE 3000$ 30
104 SRINI 3500$ 40
106 MICHEL 2000$ 20
107 JACKIE 1700$ 30
Case 8: Load the records as shown below. i ,.e a record should got to target only if it passes all the checks/lookups/xref. Implement the below logic without using lookup transformation Matching conditions: 1) CASE7_SRC.DEPTNO= CAS7_XREF_DEPT.DEPTNO 2) CASE7_SRC.EMPNO= CAS7_XREF_EMP.EMPNO CASE8_SRC
CAS8_XREF_DEPT EMPNO ENAME SAL DEPTNO
DEPTNO DNAME LOC 101 JOHN 2000$ 10
10 SALES USA 102 DEV 1500$ 20
20 MARKETING INDIA 103 HAANE 3000$ 30
104 SRINI 3500$ 40
CAS8_XREF_EMP 105 LINDA 4000$ 10
EMPNO DOB ADDRESS 106 MICHEL 2000$ 20
101 JAN KUKATPALLY 107 JACKIE 1700$ 30
102 FEB AMEERPET
103 MAR ABIDS
104 APR KOTI
105 MAY JUBLI
CASE8_TGT1
EMPNO ENAME SAL DEPTNO LOC ADDRESS
101 JOHN 2000$ 10 USA KUKATPALLY
102 DEV 1500$ 20 INDIA AMEERPET
105 LINDA 4000$ 10 USA JUBLI
Case Study-1 Real I nformatica Arise awake and stop not till the goal is reached
CASE8_ERR
ENAME SAL DEPTNO
103 HAANE 3000$ 30
104 SRINI 3500$ 40
106 MICHEL 2000$ 20
107 JACKIE 1700$ 30
Case 9: Using un-connected lookup Load the records as shown below. i ,.e a record should got to target only if it passes all the checks/lookups/xref. Matching conditions: 1) CASE7_SRC.DEPTNO= CAS7_XREF_DEPT.DEPTNO 2) CASE7_SRC.EMPNO= CAS7_XREF_EMP.EMPNO
CASE8_SRC
CAS8_XREF_DEPT EMPNO ENAME SAL DEPTNO
DEPTNO DNAME LOC 101 JOHN 2000$ 10
10 SALES USA 102 DEV 1500$ 20
20 MARKETING INDIA 103 HAANE 3000$ 30
104 SRINI 3500$ 40
CAS8_XREF_EMP 105 LINDA 4000$ 10
EMPNO DOB ADDRESS 106 MICHEL 2000$ 20
101 JAN KUKATPALLY 107 JACKIE 1700$ 30
102 FEB AMEERPET
103 MAR ABIDS
104 APR KOTI
105 MAY JUBLI
CASE8_TGT1
EMPNO ENAME SAL DEPTNO LOC ADDRESS
101 JOHN 2000$ 10 USA KUKATPALLY
102 DEV 1500$ 20 INDIA AMEERPET
105 LINDA 4000$ 10 USA JUBLI
Case Study-1 Real I nformatica Arise awake and stop not till the goal is reached
CASE8_TGT2
EMPNO ENAME SAL DEPTNO
103 HAANE 3000$ 30
104 SRINI 3500$ 40
106 MICHEL 2000$ 20
107 JACKIE 1700$ 30
Case 10: Error Handling CASE10_SRC
CAS10_XREF_DEPT EMPNO ENAME SAL DEPTNO
DEPTNO DNAME LOC 101 JOHN 2000$ 10
10 SALES USA 102 DEV 1500$ 20
20 MARKETING INDIA 103 HAANE 3000$ 30
104 SRINI 3500$ 20
CAS10_XREF_EMP 105 LINDA 4000$ 10
EMPNO DOB ADDRESS 106 MICHEL 2000$ 20
101 JAN KUKATPALLY 107 JACKIE 1700$ 30
102 FEB AMEERPET
103 MAR ABIDS
104 APR KOTI
105 MAY JUBLI CASE10_TGT EMPNO ENAME DEPTNO LOC ADDRESS 101 JOHN 10 USA KUKATPALLY 102 DEV 20 INDIA AMEERPET 104 SRINI 20 INDIA KOTI 105 LINDA 10 USA JUBLI
CASE10_ERR EMPNO ENAME SAL DEPTNO REASON 103 HAANE 3000$ 30 Lookup failed on CAS7_XREF_DEPT 106 MICHEL 2000$ 20 Lookup failed on CAS7_XREF_EMP 107 JACKIE 1700$ 30 Lookup failed on CAS7_XREF_DEPT | Lookup failed on CAS7_XREF_EMP
Case Study-1 Real I nformatica Arise awake and stop not till the goal is reached
Case 11: Eliminate the duplicate records and load the data as shown below CASE11_SRC EMPNO ENAME ACCOUNT AMOUNT MONTH COUNTRY 101 JOHN SALARY 2000$ 1 USA 101 JOHN SALARY 2000$ 1 USA 101 JOHN SALARY 2000$ 1 USA 101 JOHN SALARY 2000$ 1 USA 101 JOHN SALARY 2000$ 1 USA 102 MARK EXPENSES 1500$ 6 RUSSIA 102 MARK EXPENSES 1500$ 6 RUSSIA 102 MARK EXPENSES 1500$ 6 RUSSIA 102 MARK EXPENSES 1500$ 6 RUSSIA 102 MARK EXPENSES 1500$ 6 RUSSIA
CASE11_TGT EMPNO ENAME ACCOUNT AMOUNT MONTH COUNTRY 101 JOHN SALARY 2000$ 1 USA 102 MARK EXPENSES 1500$ 6 RUSSIA Case 12: Load the data as below i.e. last record EMPNO ENAME SAL DEPTNO 101 JOHN 2000$ 10 102 LINDA 1500$ 20 103 HAANE 3000$ 30 104 SRINI 3500$ 40 105 MARK 4000$ 10
EMPNO ENAME SAL DEPTNO 105 MARK 4000$ 10
Case 13: Load as below using Sorted Input Option. CASE13_SRC
EMPNO ENAME SAL DEPTNO
101 JOHN 2000$ 10
102 DEV 1500$ 20
Case Study-1 Real I nformatica Arise awake and stop not till the goal is reached