I have 2 tables as :
TableA:
ID Value
1 A
2 B
TableB:
Rank Value
12 A
13 B
I need to join both tables on Value column and update Value column of TableB with TableA's ID column. So result TableB will be:
Rank Value
12 1
13 2
I am using Sql Server 2008