Skip to content

Instantly share code, notes, and snippets.

@coulterpeterson
Created September 28, 2022 16:29
Show Gist options
  • Save coulterpeterson/024a48db1c128346df22dc0ee3cb1e80 to your computer and use it in GitHub Desktop.
Save coulterpeterson/024a48db1c128346df22dc0ee3cb1e80 to your computer and use it in GitHub Desktop.
Find invalid emails in MSSQL
SELECT *
FROM [Accounts]
WHERE EmailType IN ('HOME', 'EC_EMAIL', 'BUS') AND Active = 1 AND EmailAddress NOT LIKE '%_@__%.__%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment