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
SELECT DATEADD(month, DATEDIFF(month, 0, @mydate), 0) AS FirstOfMonth |
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' |