Find a Domain Name in SQL Query

Carlito · March 11, 2022

To add a column with an email domain use the following snippet:

RIGHT(Email, LEN(Email) - CHARINDEX('@', Email) + 1) AS domainName

Twitter, Facebook