disturbedone
Vendor
Hi, a relative SQL newbie here although basic SELECT etc statements are understood.
The query I have is this....
A database with simple contact information has a field for a phone number. It's VARCHAR(25) and has had various forms for the phone number entered eg '(123) 9876543', '+61 (3) 98765432', 098765432. I have an application that supplies a variable based on the caller ID which is supplied in the form of 0398765432. What SELECT statement can I run that disregards any character that's not numeric, including spaces???
The theory is that I want to be able to find the customer irrelevant on how the phone number has been entered in the database. In my scenario I do have an application that does this but I can't get access to the code to find out how it's done and want to write a new app to do it.
Any suggestions?
Thx
The query I have is this....
A database with simple contact information has a field for a phone number. It's VARCHAR(25) and has had various forms for the phone number entered eg '(123) 9876543', '+61 (3) 98765432', 098765432. I have an application that supplies a variable based on the caller ID which is supplied in the form of 0398765432. What SELECT statement can I run that disregards any character that's not numeric, including spaces???
The theory is that I want to be able to find the customer irrelevant on how the phone number has been entered in the database. In my scenario I do have an application that does this but I can't get access to the code to find out how it's done and want to write a new app to do it.
Any suggestions?
Thx