Page 1 of 1

How to solve this scenarios using Transformer

Posted: Mon Jun 03, 2013 7:55 pm
by Prince_Hyd
Hi Folks

I have a source like this

Empno,Ename,MGR
101,Tarun,vinay
102,vinay,Anand

i need output like this

Empno,Ename,MGR
101,Tarun,vinay,Anand
102,Vinay,Anand,Anand

using Transformer how to solve this.


Thanks

Posted: Mon Jun 03, 2013 8:52 pm
by rsomiset
Would there be always be only two levels or it can be dynamic?

Posted: Mon Jun 03, 2013 10:10 pm
by chulett
State your business / transformation requirements in words rather than making people puzzle them out based on simply posting input and output samples. :?

Posted: Mon Jun 03, 2013 11:19 pm
by prasannakumarkk
Classical solution should work. Self join!
Source -> Copy - > Two output link -> join -> Output.

And as usual the pitfalls in all the solution that is available for this problem statement persist like who is the manager of top executive, referential integrity setup.

Posted: Tue Jun 04, 2013 12:46 am
by ray.wurlod
When is the interview?

As noted, state the (full) requirement in words. This is called a specification, and may serve a useful mind-focussing exercise - you may even be able to come up with your own best solution.

Posted: Tue Jun 04, 2013 9:13 am
by Prince_Hyd
Hi ray

finished.Interviewer asked me that scenario and i din't got how to solve that.

Posted: Wed Jun 05, 2013 10:04 pm
by ray.wurlod
State the (full) requirement in words. This is called a specification, and may serve as a useful mind-focussing exercise - you may even be able to come up with your own best solution.