baseballgem
Programmer
I am using VFP 7, and I am exploring ways of employing Fuzzy Matches in String Searches.
I know it's possible in MS SQL. But in VFP7 how would one query with a wildcard. I know about the LIKE "U_" examples they show and the LIKE "C%" example.
(lets use the ? -question mark as a wild card)
How would you do this: I want to see everyone whose last name is ?LMAN. Which I want to yield OLMAN, ULMAN, ALMAN, ELMANDORF ...
Would I need an index on SUBS(lname,2) then just query for that in the SQL. ...where SUBS(lname,2) = "LMAN". But this is just too hard wired for me.
So what if it's a variable such as lname = "B?L": Then I might try "BA?" The wild card position may vary; or if am looking for Carter Street and not sure of spelling. ...where Address LIKE "C?RT?R"
So it might return CURTAR, CIRTIR, CARTAR, and CARTER
Are such queries possible in VFP7, AND can they be performed on Free Tables.
I know it's possible in MS SQL. But in VFP7 how would one query with a wildcard. I know about the LIKE "U_" examples they show and the LIKE "C%" example.
(lets use the ? -question mark as a wild card)
How would you do this: I want to see everyone whose last name is ?LMAN. Which I want to yield OLMAN, ULMAN, ALMAN, ELMANDORF ...
Would I need an index on SUBS(lname,2) then just query for that in the SQL. ...where SUBS(lname,2) = "LMAN". But this is just too hard wired for me.
So what if it's a variable such as lname = "B?L": Then I might try "BA?" The wild card position may vary; or if am looking for Carter Street and not sure of spelling. ...where Address LIKE "C?RT?R"
So it might return CURTAR, CIRTIR, CARTAR, and CARTER
Are such queries possible in VFP7, AND can they be performed on Free Tables.