I have two tables say, A and B of account_numbers. B being a subset of A. How do I join the two tables such that I add an additional field in the output table with the common elements (here account_numbers) being flagged as 1 and rest 0
Table A
Account_Number
11
13
15
16
17
20
Table B
Account_Number
13
16
20
Output Table
Account Flag
11 0
13 1
15 0
16 1
17 0
20 1