I have this table :
table_a
+----+--------+
| id | status |
+----+--------+
| 10 | ERROR |
+----+--------+
and I also have this table :
table_b
+------------+----------------+
| trading_id | trading_status |
+------------+----------------+
| 10 | CLOSED |
+------------+----------------+
how to UPDATE
table_a.status
based on table_b.trading_status
so that the result will be like this :
table_a
+----+--------+
| id | status |
+----+--------+
| 10 | CLOSED |
+----+--------+