Answers for "update table sql with another table"

SQL
6

update sql server from another table

UPDATE t1
SET t1.column = t2.column
FROM Table1 t1 
INNER JOIN Table2 t2 ON t1.id = t2.id;
Posted by: Guest on October-18-2021
0

update table from another table

UPDATE accounts SET (contact_first_name, contact_last_name) =
    (SELECT first_name, last_name FROM salesmen
     WHERE salesmen.id = accounts.sales_id);
Posted by: Guest on January-28-2022

Code answers related to "update table sql with another table"

Code answers related to "SQL"

Browse Popular Code Answers by Language