Hi,
We need to perform not equal condtion on two key cloumns.
i.e
a
----
Custno cusname
10,Jack
20.Mat
30,Salole
b
-----
custno,custname
50,Richard
30,kat
20,Mat
60,Kim
I need below output...unmatched records
50,richard
60,Kim
30,Kat
I tied to use chane capture stage and it's working but some warnnings "before" "outrec" are coming.Is there any other way we can achive above logic
Thanks,
Nag
Need to Perform Not Equal Join
Moderators: chulett, rschirm, roy
Need to Perform Not Equal Join
Sorry this issue is related with PX only.We need to genarate unamtched recods fom two tables into one file based on some key columns.
If you need to capture records from either table that are unmatched, one way to accomplish this is with a full outer join followed by a filter or transformer to capture and output unmatched records. Add a "flag" column (such as an integer 1) to each table's data prior to the join and check the flags after the join. Your conditions will be:
LeftFlag & RightFlag
1 & 1: The records matched
1 & 0 (or null): The left record didn't match...write it out
0 (or null) & 1: The right record didn't match---write it out
Regards,
LeftFlag & RightFlag
1 & 1: The records matched
1 & 0 (or null): The left record didn't match...write it out
0 (or null) & 1: The right record didn't match---write it out
Regards,
- james wiles
All generalizations are false, including this one - Mark Twain.
All generalizations are false, including this one - Mark Twain.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: