So: I have a small table which looks like :
PartNumber ReplacedNumber
408077-5102 408077-5102S
408077-0102 408077-5102
As you can see here, i want to replace the Part number with a Replaced number, with the issue being if a is replaced by b, and b replaced by c, then it implies that a is replaced by c.
Anyone knowing a way to do this?
Thanks for your help
UPDATE:
Okay, here is the sample data:
id PartNumber ReplacedNumber
1 408077-5102 408077-5102S
2 408077-0102 408077-5102
As you can see, the value in the 2nd row is replaced (a is replaced by b, which in this case 408077-0102
is replaced by 408077-5102
), and then b is replaced by c (408077-5102
is replaced by 408077-5102S
in the 1st row).
That implies a = c. I want to avoid replacing values in repetition. I hope it is clearer now.
Thanks