MSSQL charindex

Charindex is a great function for working with emails:

 

left(Email, charindex(‘@’, email) -1) + ‘@invalidemail.com’ as email,

Comments are closed.