how to add where command in update comand with joins
UPDATE A
SET foo = B.bar
FROM TableA A
JOIN TableB B
ON A.col1 = B.colx
WHERE ...
how to add where command in update comand with joins
UPDATE A
SET foo = B.bar
FROM TableA A
JOIN TableB B
ON A.col1 = B.colx
WHERE ...
joins in update query
update a
join b
on a.a_id=b.b_id
set b.is_active = 1
where ....;
SQL update with join
UPDATE D
SET D.Name = 'Computer Science and Engineering'
FROM Department D
INNER JOIN Student S ON D.Id = S.DepartmentId
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us