Source table
-------------
ID NAME
--- ------
101 PANKAJ
NULL KUMAR
NULL MATHUR
102 JYOTI
NULL SAXENA
103 SACHIN
NULL TENDULKAR
TARGET TABLE
-------------
ID NAME
--- -------
101 PANKAJ KUMAR MATHUR
102 JYOTI SAXENA
103 SACHIN TENDULKAR
How to do the above scenario in Informatica.
Answer Posted / nagraj
From SQ pass to Expression Transformation
- Take Variable for ID i.e.
V_ID =iif(not isnull(ID),ID ,V_ID )
- Take Variable for Name i.e.
iif( isnull(ID) ,CONCAT(CONCAT(LTRIM(RTRIM
(V_old_Name)),' ') ,Name),Name)
At this stage you will see the Data like this
ID Name
101 PANKAJ
101 PANKAL KUMAR
101 PANKAJ KUMAR MATHUR
Now pass the ID and NAME output port through an Aggregator
Transformation
-Take new variable for Name i.e.
New_Name=concat(concat(New_Name,' '),Name)
-Take new output port for Name and put expression for the
Name output port as follows
Out_Name=GREATEST(Name,New_Name)
- Check Group By on ID
Pass the ID and Name outpurt port to the Target.
option (truncate and load)
Where Group by on ID port
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we use the mapping parameter or variables developed in one mapping into any other reusable transformation?
Plz can any one say me how to get the informatica certification materials and dumps
Explain in detail about scd type 1 through mapping.
tell me 5 session failure in real time how can you solve that in your project?
How to generate sequence numbers using expression transformation?
design of staging area?
Name at least 5 different types of transformations used in mapping design and state the use of each.?
Explain how to import oracle sequence into informatica?
Tell me about Propagate functions in informatica
What is update strategy transform?
Explain how many types of dimensions are available in informatica?
When do you use sql override in a lookup transformation?
What all are steps in up gradation of Informatica server?
Enlist few areas or real-time situations where informatica is required.
What are the settings that you use to configure the joiner transformation?