Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not Numeric Query

Status
Not open for further replies.

delaap

Programmer
Jun 6, 2001
22
GB
Hi,
I have a table with telephone numbers within it. I'm trying to construct a query that will return all the recs that are not numeric i.e.

+44 01206 851851
(01206) 851851
01206-851851 etc...

The problem occurs with the spaces as these are seen as non numeric.
Does anyone have any ideas on how to construct this query succesfully.
Thanks
 
Code:
SELECT phone
FROM table
WHERE ISNUMERIC(REPLACE(phone, ' ', '')) = 1

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top