Informatica Scenario Based Ques
Informatica Scenario Based Ques
Col
ABC
DEF
GHI
JKL
MNO
Now follow the below steps to load the last 3 rows into a target table
Step 1
Assign the row numbers to each record by using expression transformation. Name the
row to calculate as N_calculate.
Create a dummy output port and assign 1 to the port in the same expression
transformation.
This will return 1 for each row.
N_calculate=V_calculate
N_dummy=1
Outputs in Expression Transformation
col, N_calculate, N_dummy
ABC, 1, 1
DEF, 2, 1
GHI, 3, 1
JKL, 4, 1
MNO, 5, 1
Step 2
N_calculate
N_total_records=N_calculate
Outputs in Aggregator Transformation
N_total_records, N_dummy
5, 1
Step 3
Now pass the value of expression and aggregator transformation to the joiner
transformation
Merge the dummy port
Check the property sorted input in the joiner transformation to connect both
expression and aggregator transformation
Now the join condition will be O_dummy (port from aggregator transformation) =
O_dummy (port from expression transformation)
Step 4
Output
Amazon
Walmart
Snapdeal
Snapdeal
Walmart
Flipkart
Walmart
Situation – Give steps to load all unique names in one table and duplicate
names in another table.
And
Amazon
Walmart
Snapdeal
Snapdeal
Walmart
Flipkart
Walmart
Situation – Load each name once in one table and duplicate products in another table.
Ans.
Amazon
Walmart
Snapdeal
Flipkart
Table 2
Walmart
Walmart
Snapdeal
Ans. This is one of the popularly asked Informatica Interview questions that you must
prepare for your upcoming interview.
If you want to transform a single row into multiple rows, Normalizer Transformation will
help. Also, it is used for converting multiple rows into a single row to make data look
organized. As per the above scenario-based Informatica interview question, we want the
solution to look as:
Follow the steps to achieve the desired solution by using normalizer transformation:
Step 1 –
Step 2 –
Step 3 –
In the mapping, link all four columns in source qualifier of the four Quarters to the
normalizer
Link state name column to normalizer column
Link state_name and purchase columns to target table
Link lkp_purchase column to target table
Create session and workflow
Save the mapping and execute it
You will get the desired rearranged output
For example:
Student_Id Number,
Student_Name Varchar2(60),
Place Varchar2(60)
Now we require using the SCD Type 1 method to load the data present in the source table
into the student dimension table.
Stud_Key Number,
Student_Id Number,
Student_Name Varchar2(60),
Location Varchar2(60)
OR Location != Src_Location),
1, 0 )
infacmd
infasetup
pmcmd
Pmrep
Start workflows
Schedule workflows
Start a workflow from a specific task
Stop and abort workflows and sessions
1. Start workflow
4. Abort workflow
Create mapping containing multiple target load order groups in the PowerCenter
designer
From the toolbar, click on the Mappings and then click on Target Load Plan
You will see a pop up that will have a list of source qualifier transformations in the
mapping. Also, it will have the target from which it receives data from each source
qualifier
From the list, pick a source qualifier
Using the Up and Down button, move source qualifier within load order
Click ok
You will get the desired output
Ans. When the first load is finished the table will become:
INITTCAP(string_name)
These were some of the most popular scenario-based Informatica interview questions.
1, 2000
2, 3000
3, 4000
4, 5000
2, 3000, 5000
3, 4000, 9000
4, 5000, 14000
Ans. The following steps need to be followed to get the desired output:
1, 2000, 14000
2, 3000, 14000
3, 4000, 14000
4, 5000, 14000
Ans. The following steps should be followed to get the desired output:
Step 1:
Create a dummy port in the expression transformation and assign value 1 to it. The ports will
be:
employee_id
salary
O_dummy=1
Step 2:
Salary
O_dummy
O_sum_salary=SUM(salary)
Step 3:
Check the property sorted input and connect expression and aggregator to joiner
transformation.
Step 4:
1, 2000, Null
2, 3000, 2000
3, 4000, 3000
4, 5000, 4000
Ans. The following steps will be followed to get the desired output:
employee_id
salary
V_count=V_count+1
V_salary=IIF(V_count=1,NULL,V_prev_salary)
V_prev_salary=salary
O_prev_salary=V_salary
Explore Database Administration Courses, Skills, and Career, read our blog – what is
Database Administration?
Connect a router transformation and drag the port (products, v_count) from
expression into the router transformation.
Make two groups in the router
Give condition
Send the two groups to different targets
Save session log for these runs –> Change the number that you want to save the number of
log files (Default is 0)
If you want to save all of the log files created by every run, and then select the option
Save session log for these runs –> Session TimeStamp
Q112. Mention the performance considerations while
working with Aggregator Transformation?
Ans. The following are the performance considerations while working with Aggregator
Transformation:
We hope that this interview blog covering Informatica interview questions for freshers and
experienced candidates as well scenario based Informatica interview questions will help you
crack your upcoming interview.