Skip to content

Instantly share code, notes, and snippets.

@alancoleman
Created December 9, 2013 11:27
Show Gist options
  • Save alancoleman/7870855 to your computer and use it in GitHub Desktop.
Save alancoleman/7870855 to your computer and use it in GitHub Desktop.
Output email column depending on domain using regex
CASE
WHEN email REGEXP '@msn|@live|@hotmail' THEN 0
ELSE
1
END
AS 'Mailer'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment