I have a database table of customers where customer's phone numbers are stored in a field named phoneNumber.
customerId | customerName | phoneNumber
1 Maulik 0213-383030
2 Maulik1 0-213-383030
3 Maulik2 (0213) 383030
I want to search customers having same phone numbers.
phone numbers might have '-' , '(', ')' , SPACE characters. I want to ignore all characters except numbers while searching.
As shown in database, when I want to search phone number '0213383030', these all customers should be in resultset.
Can you suggest me query for this.