I have two tables which have two columns some with similar data but I want lookup values from one of the table when the data in the two columns match and if it does not match it returns data in the master column
TABLE A
Company_Code | Invoice_No | Buyer_Code| Diaspora_Buyer_Code
A|1|001
A|6|002
B|2|003
C|3|001
D|5|006
TABLE B
Company_Code | Invoice_No|Diaspora_Buyer_Code
A|1|11
A|6|12
B|2|11
EXPECTED RESULT
Table A should have the below values in the Diaspora_Buyer_Code(Calculated Column)
TABLE A
Company_Code | Invoice_No | Buyer_Code| Diaspora_Buyer_Code
A|1|001|11
A|6|002|12
B|2|003|11
C|3|001|001
D|5|006|006