I have 2 tables, Table1 contains only ID and table2 has id and indicator. Now i want to update the INDI field in Table2.
TABLE1
======
ID
-----
A123
A456
A678
A890
TABLE2
======
ID INDI
----- ----
A123
A456
A678
A890
A666
A898
If ID of TABLE2 matches with ID of TABLE1 then update INDI with 'MMM' else update INDI with 'OOO'. How can i achive this?
FInal result will be....
TABLE2
======
ID INDI
----- ----
A123 MMM
A456 MMM
A678 MMM
A890 MMM
A666 OOO
A898 OOO