Lets say I have two tables
table_1
ID Name Status
1 John
2 Peter
3 Smith
table_2
ID UID Status UpdateDate
1 1 B 2010-05-05
2 1 C 2011-03-02
3 3 C 2011-03-02
4 2 A 2011-03-02
What is the correct statement to update Status on table_1 according to UpdateDate on table_2.
Result should be like this
table_1
ID Name Status
1 John C
2 Peter A
3 Smith C
Thanks.
1 Answer