0% found this document useful (0 votes)
42 views

Assignment 4

The document discusses various questions about updating relational source definitions, updating target tables without primary keys using target overrides or mapping-level logic, flagging source records for insert or update without using lookups, importing flat file definitions, pivoting and transforming source records into different formats in the target table, and generating sequence numbers without using sequence generators by leveraging unconnected lookups. It provides answers on how to accomplish various data integration tasks through different Informatica techniques and properties.

Uploaded by

Sagar Pachore
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Assignment 4

The document discusses various questions about updating relational source definitions, updating target tables without primary keys using target overrides or mapping-level logic, flagging source records for insert or update without using lookups, importing flat file definitions, pivoting and transforming source records into different formats in the target table, and generating sequence numbers without using sequence generators by leveraging unconnected lookups. It provides answers on how to accomplish various data integration tasks through different Informatica techniques and properties.

Uploaded by

Sagar Pachore
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Q1. What are the two ways we can update a relational source definition?

Answer: 1)Edit the definition

2)Re-import the definition

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

2. Update else Insert

Q3. Where should we place the flat file to import the flat file definition to the designer?

Answer: Place it in local folder

Q4. CREATE TABLE S_EPLIST VALUES ( DEPARTMENT_NO NUMBER, EMPLOYEE_NAME


VARCHAR2(32)); INSERT INTO S_EPLIST VALUES (10,’A’); INSERT INTO S_EPLIST VALUES (10,’B’);
INSERT INTO S_EPLIST VALUES (10,’C’); INSERT INTO S_EPLIST VALUES (10,’D’); INSERT INTO S_EPLIST
VALUES (20,’P’); INSERT INTO S_EPLIST VALUES (20,’Q’); INSERT INTO S_EPLIST VALUES (20,’R’);
INSERT INTO S_EPLIST VALUES (20,’S’);

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:

D. Design a mapping to convert row data into column data

department_no COL1 COL2 COL3 COL4

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

You might also like