Created
May 17, 2013 15:50
-
-
Save arsham/5599993 to your computer and use it in GitHub Desktop.
Update a table, feeding a column from inner join of two other tables as reference
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 T1P | |
INNER JOIN T2 | |
ON T1.match1 = T2.match1 | |
INNER JOIN T3 | |
ON T3.match2 = T2.match2 | |
SET T1.new_column = T3.source_of_new_column; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment