Not sure why this is not working:
UPDATE ust SET ust.isUnsubscribedFromSystemEmails = 1 FROM UserSetting AS ust INNER JOIN [User] ON ust.userID = [User].userID AND [User].emailAddress IN (SELECT emailAddress FROM BadEmailAddresses)
In plain English, I'm trying to set the isUnsubscribed field to unsubscribed, where the userID in the UserSetting table is equal to userID in the user table and where emailAddress in the user table and not in the list of letters from another table. Can I run select in the isUnsubbed column using almost the same syntax and it works fine? thank you
PS I looked at other similar issues here, and the syntax looks the same, but obviously, I missed something.
toddm source share