For each line with column C = 2, I would like to retrieve the line (in the same table) with the same value in column A and with column C = 1; Once the match is found, the value of Column B should be copied
Example above would result in:
A
B
C
101
X
1
102
Y
1
101
X
2
102
Y
2
As I have a big volume of data, I would like an optimized way to do this operation and appreciate your advice.