1
Good morning guys, next, I’m doing a standardization of some records here in the company. So there are 2 tables.
Table A(old records) columns as:
id_alvara | logradouro
1 | Rua Sete de Setembro n° 200
2 | Rua tal 300
3 | Rua de Teste n555
4 | Rua nada 2000
Table B(new records) columns as:
id_logradouro | logradouro | num
1 | Rua Tal | 220
2 | Rua de Test| 555
What you take is the following, as I do a filter in table A to search for the exact number?
For example, in a form, the user is typing the number 220, have to return to it the correct record 1?
I used in WHERE a like( ... Where like '%200%') but it returns me any number that has 200, and it does not solve me.
As a filter and pull out all the letters?
I think I understood, I await return and thank you and who to answer! Hug
EDIT1: Highlighting the problem, sometimes the user, when he registered his address, put the number of his residence like: n°220 or N220 etc, this prevents me to use directly the 220.
I don’t quite understand. You are searching in table A, I go there and write: 200, you do not want to use the like pq will return all the places that have 200 in some position?
– Aline