April 29, 2022 at 12:34 pm
April 29, 2022 at 3:09 pm
Try the REPLACE function, and replace with '' (no spaces)
https://docs.microsoft.com/en-us/sql/t-sql/functions/replace-transact-sql?view=sql-server-ver15
April 29, 2022 at 3:44 pm
If you just want to get rid of all digits in the email address, then:
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(email_id, '0', ''), '1', ''), '2', ''), '3', ''), ...
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
April 29, 2022 at 5:02 pm
How to remove integers from the Email Id
Please guide
WHY???? It seems to me that you're removing a necessary part of a correct email address. 🙁
--Jeff Moden
Change is inevitable... Change for the better is not.
April 29, 2022 at 7:13 pm
An alternative way to do it:
REPLACE(TRANSLATE(email, '0123456789', REPLICATE(CHAR(1), 10)), CHAR(1), '')
April 29, 2022 at 7:49 pm
Again, I'd like to know why we're perverting email addresses in such a fashion. There has to be a reason.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 29, 2022 at 8:12 pm
Again, I'd like to know why we're perverting email addresses in such a fashion. There has to be a reason.
I don't know, but I was thinking it could be that some people sign up to offers with multiple email addresses. They just create multiple email addresses by adding numbers to the end of an email address. This could be one way to identify these emails.
April 29, 2022 at 11:17 pm
How about it @Smash125? Why do you need this top be done?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply