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
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
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
Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com
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
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
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
Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com
MappingMapping
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.
Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com
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.
Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com
Look up conditionLook up condition
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
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.
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.
Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com
Filter conditionFilter condition
Learn Informatica : Power center : Learn Informatica : Power center : www.Infowww.Info--Etl.comEtl.com
Mapping complete !Mapping complete !
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]