SOURCE
1 a
1 b
1 c
2 a
2 b
2 c


TARGET
1 A B C
2 A B C


In oracle & informatica level how to achieve

Answers were Sorted based on User's Feedback



SOURCE 1 a 1 b 1 c 2 a 2 b 2 c TARGET 1 A B C 2 A B C In oracle & informatica lev..

Answer / mr.lee

Hi,
Using Informatica
SRC-SQ-SRT(key used id)-EXP(
v_name = IIF(ID=v_prev_id,v_prev_name ||'
'||UPPER(name),UPPER(name))
v_prev_name = v_name
out_name = v_prev_name
v_prev_id = ID
)-AGG(group by id will give u last row)-TGT

Ankit Kansal

This is wrong Concept....
First Try You

Is This Answer Correct ?    1 Yes 0 No

SOURCE 1 a 1 b 1 c 2 a 2 b 2 c TARGET 1 A B C 2 A B C In oracle & informatica lev..

Answer / rajesh badra

use wm_concat or listagg

Is This Answer Correct ?    1 Yes 0 No

SOURCE 1 a 1 b 1 c 2 a 2 b 2 c TARGET 1 A B C 2 A B C In oracle & informatica lev..

Answer / parikhita prusty

first sort the first column empid using sorter t/r then
expersion t/r create variable port
v_ename:=iff(prev.empid=curr.empid,v_ename||' '||ename,ename)
o_ename=v_ename
then using expersion t/r convert lower case higher case. any
doubt mail me.

Is This Answer Correct ?    1 Yes 1 No

SOURCE 1 a 1 b 1 c 2 a 2 b 2 c TARGET 1 A B C 2 A B C In oracle & informatica lev..

Answer / ankit kansal

Hi,
Using Informatica
SRC-SQ-SRT(key used id)-EXP(
v_name = IIF(ID=v_prev_id,v_prev_name ||' '||UPPER(name),UPPER(name))
v_prev_name = v_name
out_name = v_prev_name
v_prev_id = ID
)-AGG(group by id will give u last row)-TGT

Using Oracle

select value from (
select id ||' '||upper(name) ||' '|| lead(upper(name),1) over (partition by id order by id) ||' '|| lead(upper(name),2) over (partition by id order by id) value from ankit_temp order by 1
)temp where length(value)>0 order by value;

http://deepinopensource.blogspot.com/

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Informatica Interview Questions

i have f;latfile source. i have two targets t1,t2. i want to load the odd no.of records into t1 and even no.of recordds into t2.

3 Answers   Wipro,


What is the difference between Connected and UnConnected Lookup Transformation.Give me one or two examples please?

7 Answers  


follwing scenario two table using find maximum salary? table a table b 101 xxx 1000 106 6500 103 yyy 5000 108 800 104 din 6000 109 7000 105 dsh 200 110 3000

5 Answers   IBM,


why u go for dimensions ?

3 Answers   TCS,


How to load the data into target table, which not have Primary/Surrogate key (Duplicate records not acceptable)

5 Answers   TCS,






Which means the first record should come as last record and last record should come as first record and load into the target file?

0 Answers   Informatica,


How do you set a varible in incremental aggregation

0 Answers  


What are the types of lookup caches?

10 Answers   Accenture, IBM, Informatica,


How can we get two output ports in un-connect transformation?

2 Answers   Ness Technologies,


What are the types of groups in Router transformation?

1 Answers   Informatica,


How can we remove the duplicates from flat file source?

0 Answers  


Source-1 No name 1 satish 2 karthik 3 swathi 4 keerthi Source-2 No name 1 satish 2 karthik 5 santhose 6 vasu Target 3 swathi 4 keerthi 5 santhose 6 vasu here i want non matching Records i want how to achieve that

5 Answers   TCS,


Categories