Hi Experts,
I have a source table like this.
Name Number
Raj 2
Ram 1
Sam 2
John 1
In the target I need the ouptput like the below
Raj
Raj
Ram
Sam
Sam
John
We dont know the number value . It will be changing as n..
Please help me regarding this.
Thanks,
Nataraj V
Answer Posted / ganesh kumar
BY USING QUERY OVERRIDE IN SOURCE QUALIFIER
TO WRITE THE QUERY LIKE THIS
T_TEST UR SOURCE TABLE, NAME AND N_NUMBER UR SOURCE TABLE
COLUMN.
USING THE LEVEL PSEUDOCOLUMN TO GENERATE THE DUMMY ID(LEVEL
L)AND USING THE QUERY(DUAL TABLE) AS A INLINE VIEW AND THEN
JOIN(NON EQUIJOIN) THE CONDITION. FINALLY WE GOT THE RESUL
select t.name,t.n_number from t_test t,(select level l from
dual connect by level <= (select max(n_number) from t_test))
u where t.n_number>=u.l order by t.name;
SAME LOGIC USED FOR OTHER THAN RELATIONAL SOURCE AND THE
TRANSFORMATION.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Repository user profiles
Explain constraint based loading in informatica
What is Session and Batches?
Different qualification between a related rotate toward the sky and isolates look upward?
Can we use the mapping parameters or variables created in one mapping into any other reusable transformation?
How many dimensions are there in informatica?
Performance tuning in UNIX for informatica mappings?
How to use procedural logic inside infromatica? If yes how, if now how can we use external procedural logic in informatica?
How can repository reports be accessed without sql or other transformations?
Did u used latest transformations of 8.6.0? for what?
How to load a Dimension ? and how to load a fact table?
What are the different options available for update strategy?
How to start a workflow using pmcmd command?
if we have a delimiters at unwanted places in a flat file how can we over come those.
1)you have multiple source system where u receive files ,how do you actually load into mapping using transformation,what are the transformation you use? 2)you have files in ftp location ,how do you get it into mapping with you ETL concept?