Sie sind auf Seite 1von 15

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

com

Informatica Power Center


Sample LAB Include : Expression , joiner , lookup , filter
Learn Informatica : Power center : www.Infowww.Info-Etl.com

What we will learn today .. Expression , joiner , lookup , filter

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

Lab Details

Aim : to load students marks data into target, and also to filter filter failed students record and load them to a separate table.

Source 1 : student_marks Cols : roll_no , SUBJECT_ID , marks

Source 2 : student_roll_no Cols : roll_no , student_name

Source 3 : student_subject Cols : SUBJECT_NAME , SUBJECT_ID

Target 1 : student_result Cols : student_name , SUBJECT_NAME , marks , status

Target 2 : for failed Students : fail_student_result( fail_student_result( Cols : student_name , SUBJECT_NAME , marks , status

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

Logic
We will use joiner to join data of student_marks and student_roll_no table using key roll_no . Then we will use look-up to table : student_subject to get the subject name based on SUBJECT_ID . After that we will calculate status(Fail/Pass) based on student marks. Condition : marks >= 50 will be considered as pass, Marks < 50 will be considered as fail. All records will be loaded to student_result In the end we will filter records on the basis of status to load into table : fail_student_result

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

Mapping

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

Step 1

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

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

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

Step 2

Use look up to get subject name using subject id and pass subject name to next expression.

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

Look up condition

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

Step 3 :

Calculate status based on marks in expression transformation

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

Step 4

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

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

Step 5

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

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

Filter condition

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

Mapping complete !

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

End Of Lab

Any Questions ? Mail to : support@info-etl.com

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

Das könnte Ihnen auch gefallen