Created
June 13, 2021 08:23
-
-
Save bartubozkurt/01c174e4064bb900627e987dd1250df5 to your computer and use it in GitHub Desktop.
UPDATE statement when updating one table with data from another table in SQL Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE table1 | |
SET column1 = (SELECT expression1 | |
FROM table2 | |
WHERE conditions) | |
[WHERE conditions]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment