Created
December 14, 2017 06:42
-
-
Save MarioBinder/fc8102010658866cfbc76cd77e1ba944 to your computer and use it in GitHub Desktop.
SQL Update with Inner Join
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 s | |
SET s.IsFreezed = 1 | |
FROM [DBNAME].[dbo].[COLUMN] AS s | |
INNER JOIN [DBNAME].[dbo].[COLUMN] AS m | |
ON s.Id = m.StatusId | |
WHERE m.Subject = 'xxxxx' | |
AND s.HasSent = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment