Hi,
Thanks for the response.
Apologies for not being clear.
In the case of 10002, I only want to keep code2 when code2 values are different.
10002 101 201 10002 101 301 10002 102 202
In the case of 10003, I only want to keep one row for code1 and code2 combo, because there is duplicate values in code1 and code 2. So I only want to keep one combination of code1/code2 which could be either (101/201 and 102/301) or (101/301 and 102/201).
10003 101 201 10003 101 301 10003 102 201 10003 102 301
... View more