Assignment 4
Assignment 4
Q2. 1.Can we update target without a primary key? ans:- query override , Using Oracle & Import the
target table
Answer: Only way to update without primary key is to write an Target override in Target.By doing
this, you dont need primary key for updation.
2. How can we update a record in target table without using Update strategy?:-data driven,
mapping level
Answer: A target table can be updated without using 'Update Strategy'. For this, we need to define
the key in the target table in Informatica level and then we need to connect the key and the field we
want to update in the mapping Target. In the session level, we should set the target property as
"Update as Update" and check the "Update" check-box.
3. How can we flag the incoming sources records as insert if it doesn’t exist in target and update
if exists without using lookup to target? :- joiner
Answer: In the session properties 'Treat source rows as' make as 'Update' and go to session
properties->mapping->target properties and enable following properties
1. Insert
Q3. Where should we place the flat file to import the flat file definition to the designer?
A. Design a mapping to load a target table with the following values from the above source?
department_no employee_list
10 A
10 A,B
10 A,B,C
10 A,B,C,D
20 A,B,C,D,P
20 A,B,C,D,P,Q
20 A,B,C,D,P,Q,R
20 A,B,C,D,P,Q,R,S
Answer:
B. Design a mapping to load a target table with the following values from the above source?
department_no employee_list
10 A,B,C,D
20 A,B,C,D,P,Q,R,S
C. Design a mapping to load a target table with the following values from the above source (pivoting
of records)?
department_no employee_list
10 A,B,C,D
20 P,Q,R,S
Answer:
10 A B C D
20 P Q R S
Q6. Design a mapping to generate sequence numbers without using Sequence Gen Trans. Source
being order_details from sales schema and target having same set of columns as source with an
extra column called “seq_key” ANS:- unconnect lookup