hello i have two tables: table_1 and table_2
table_1 table_2
field_1 field_2 field_3 field_4
1 a 1
2 b 4
3 c 3
4 d 2
now i need a query using update so that in table_2 i can have follwing values in field_4:
table_2
field_3 Field_4
1 a
4 d
3 c
2 b
should be obtained by update staement in single query using table_1 such that if field_3 of table_2 has 1 then filed_4 should have value equlas to field_2, field_1 in table_1