I am trying to update a column by removing 'mail' from the email addresses. I use this:
Set email = (SELECT REPLACE(email,'mail.xxxx.edu','xxxx.edu')
However, I get this error message:
Msg 512, Level 16, State 1, Line 1
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.
How can I fix