Update values in a column from one table based on a join from two tables

PHOTO EMBED

Tue Aug 17 2021 04:46:38 GMT+0000 (UTC)

Saved by @lemnick #sql

           UPDATE table1 
           SET status = (SELECT t2.status FROM table2 t2 WHERE t2.trans_id = id) , 
               name = (SELECT t2.name FROM table2 t2 WHERE t2.trans_id = id)
           WHERE id IN (SELECT trans_id FROM table2 t2 WHERE t2.trans_id= id)
content_copyCOPY

https://stackoverflow.com/questions/28668817/update-column-with-value-from-another-table-using-sqlite