Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I have data like this
id subid
2 | 3 |
3 | 5 |
4 | 10 |
5 | 7 |
7 | 8 |
8 | 9 |
10 | 11 |
11 | 15 |
I need output like this
Col1 Col2
2 | 3 |
3 | 5 |
5 | 7 |
7 | 8 |
8 | 9 |
4 | 10 |
10 | 11 |
11 | 15 |
Here subid of 2 is 3 then 3 will become id i need to get subid of 3 is 5 then this loop should close
2--3
3--5
5--7
7--8
8--9
then next data 4
4--10
10--11
11--15
I want to do in Talend , what is the approach and which components need to use
If you need any clarification please comment
Thanks in Advance
Hi Ravisankar,
Is there any other example? because for the above example if you sort data based on column 2 then data will be as expected out.
Regards,
This is the source data correct?
id subid
2 | 3 |
3 | 5 |
4 | 10 |
5 | 7 |
7 | 8 |
8 | 9 |
10 | 11 |
11 | 15 |
Regards,
Hi
Thanks for response
Sorry for the delay
Yes @vboppudi, its source data only
As @Dijke mentioned, its parent child only
example take record
parent child
2 3
here 3 is child but 3 is in parent also and child is 5
Its like Self join and loop
2 loop is ending on 9
I need output like this
Col1 Col2
2 | 3 |
3 | 5 |
5 | 7 |
7 | 8 |
8 | 9 |
4 | 10 |
10 | 11 |
11 | 15 |
Regards
Ravisankar