Top Banner
Learn Informatica : Power center : Learn Informatica : Power center : www.Info www.Info-Etl.com Etl.com Informatica Power Center Informatica Power Center Sample LAB Sample LAB Include : Expression , joiner , Include : Expression , joiner , lookup , filter lookup , filter Learn Informatica : Power center : www.Info-Etl.com
15

Lab

May 10, 2017

Download

Documents

Manish Jain
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Informatica Power CenterInformatica Power CenterSample LABSample LAB

Include : Expression , joiner , Include : Expression , joiner , lookup , filterlookup , filter

Learn Informatica : Power center : www.Info-Etl.com

Page 2: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

•• Expression , joiner , lookup , filterExpression , joiner , lookup , filter

What we will learn today …..

Page 3: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Lab DetailsLab Details Aim : to load students marks data into target, and also to filteAim : to load students marks data into target, and also to filter failed r failed

students record and load them to a separate table.students record and load them to a separate table.

Source 1 : Source 1 : student_marksstudent_marksCols : Cols : roll_noroll_no , SUBJECT_ID , marks , SUBJECT_ID , marks

Source 2 : Source 2 : student_roll_nostudent_roll_noCols : Cols : roll_noroll_no , , student_namestudent_name

Source 3 : Source 3 : student_subjectstudent_subjectCols : SUBJECT_NAME , SUBJECT_ID Cols : SUBJECT_NAME , SUBJECT_ID

Target 1 : Target 1 : student_resultstudent_resultCols : Cols : student_namestudent_name , SUBJECT_NAME , marks , status , SUBJECT_NAME , marks , status

Target 2 : for failed Students : Target 2 : for failed Students : fail_student_resultfail_student_result((Cols : Cols : student_namestudent_name , SUBJECT_NAME , marks , status, SUBJECT_NAME , marks , status

Page 4: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

LogicLogicWe will use joiner to join data of We will use joiner to join data of student_marksstudent_marks and and

student_roll_nostudent_roll_no table using key table using key ‘‘roll_noroll_no ’’..

Then we will use lookThen we will use look--up to table : up to table : student_subjectstudent_subject to get the to get the subject name based on SUBJECT_ID .subject name based on SUBJECT_ID .

After that we will calculate After that we will calculate status(Failstatus(Fail/Pass) based on student /Pass) based on student marks. marks.

Condition : marks >= 50 will be considered as pass,Condition : marks >= 50 will be considered as pass,Marks < 50 will be considered as fail.Marks < 50 will be considered as fail.All records will be loaded to All records will be loaded to student_resultstudent_result

In the end we will filter records on the basis of status to loadIn the end we will filter records on the basis of status to loadinto table : into table : fail_student_resultfail_student_result

Page 5: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

MappingMapping

Page 6: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Step 1Step 1

Use joiner to join two tables: Use joiner to join two tables: mention joining condition also in mention joining condition also in condition tab.condition tab.

Page 7: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Page 8: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Step 2Step 2 Use look up to get subject name using subject id Use look up to get subject name using subject id

and pass subject name to next expression.and pass subject name to next expression.

Page 9: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Look up conditionLook up condition

Page 10: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Step 3 : Step 3 :

Calculate Calculate ‘‘statusstatus’’ based on marks in based on marks in expression transformationexpression transformation

Page 11: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Step 4Step 4

Connect expression to Target in Connect expression to Target in which all records will be loaded.which all records will be loaded.

Page 12: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Step 5Step 5

Use filter to load only failed students Use filter to load only failed students records to another table.records to another table.

Page 13: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Filter conditionFilter condition

Page 14: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

Mapping complete !Mapping complete !

Page 15: Lab

Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com

End Of LabEnd Of Lab

Any Questions ?Any Questions ? Mail to : Mail to : support@[email protected]