Created
October 18, 2020 01:35
-
-
Save stevesohcot/32ec419c51ed9a3d4330bceedf93c8e3 to your computer and use it in GitHub Desktop.
SQL to Update based on a second table
This file contains 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 tblData | |
SET | |
tblData.field_one = tblSource.field_one | |
FROM | |
myTableNameHere tblData | |
INNER JOIN myOtherTableNameHere tblSource ON | |
tblData.id = tblSource.id | |
WHERE | |
tblData.field_with_criteria = 'x' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment