I have two tables:
Table 1
Code Value
AAA 100
BBB 200
CCC 300
DDD 400
Table 2
Code NewCode
AAA ALPHA
BBB BETA
DDD DELTA
How do you create a stored procedure that will update all the Code in Table 1 so to the NewCode they should have based on Table 2? So that the end result will be something like this:
Code Value
ALPHA 100
BETA 200
CCC 300
DELTA 400