Update of the table using another table
-
A table school
and is the table newemails
Objective - E-mail addresses from the table newemails in the school♪
The point is, to deal with such tasks, I write a separate annex. But I think that's a standard SQL tool. Is there a possibility?
-
UPDATE s SET s.SchoolEmail = e.SchoolEmail FROM school s INNER JOIN newemails e ON s.SchoolID = e.SchoolID