troubleshooting Question

Select removing special characters from phone number

Avatar of clintnash
clintnashFlag for United States of America asked on
Microsoft SQL Server 2005
13 Comments1 Solution2860 ViewsLast Modified:
I need to select a passed phone number that contains no spaces or special characters (1111111111) against a field where the phone number is stored with spaces and or special characters (ex (111) 111-1111 or 111 111-1111 or etc...).  

Its a third party database so we don't have the option to clean the data.  Can someone suggest a way to strip the spaces and special characters so a where clause would work regardless of spaces and special characters.

Any advice would be appreciated, I am at a loss on this one.

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros