I have a database table that looks like this i.e. address is a free text field (I did not design it):
5 records from the Address Table:
1 The street
2 Pine Street,Lincoln,Lincolnshire
77 Drove Way,Grantham
Drove Way Lincoln
Some house on Ambleside
I have an application that has an address field that is free text (again I did not design it). I want a user to start typing an address into the address field and then a list of Possibles to appear (hopefully just one). I have thought of a few ways to approach this:
1) Use a LIKE statement e.g. select * FROM dbaddress where address like '%1 The Street%'. This seems like a bad idea.
2) Free text search. I have not used this before.
Which is the "better option" for my requirements. Is there an alternative approach?