Page 1 of 1

hi how to do duplicate one target and distinct values one ta

Posted: Wed Jun 23, 2010 1:11 pm
by harikumar
hi
i have table(source) like

empno ename
10 a
20 b
10 c
30 d
20 g
30 h

i want to do output like

target1

empno ename
10 a
20 b
30 d


target2

empno ename
10 c
20 g
30 h

Posted: Wed Jun 23, 2010 1:16 pm
by anbu
Do you have any rules to tell particular ename to be in target1 or in target2?

Posted: Wed Jun 23, 2010 2:20 pm
by anbu
You can use sort stage and set Create Change Key Column to true.

Use constraint KeyChange=1 for table1 and KeyChange=0 for table2

Posted: Wed Jun 23, 2010 5:32 pm
by ray.wurlod
This precise question has been asked previously, and by you, and an answer was provided.
:x