B
Barry A&P
I am hoping i can use levenstein with some kind of like or wildcard i know
this is probably not possible but i am hoping the user can search for a
serial number using "AHP-52020" and have "AHP52020 WHITE" show up in the
results. i have used LIKE *AHP-52020* but sometimes a number or space or typo
might keep the desired result from showing. Is levenstein the answer or
should i look elsewhere?? How does Google get there???
I am having trouble with the LevenshteinDistance sample by Doug Steele
Just for experimentation I added my data to his demo form through the
following two queries the demo form searched only the lastnm field I want to
use the levenstein diff on my SerialNumber field but get the following error
when I put it in the lastnm field. “Data type mismatch in query “
This is the query with the error the tables SerialNumber field is text with
a length of 40
SELECT T_PartNumbers.Description AS firstnm, T_SerialNumbers.SerialNumber AS
lastnm
FROM T_PartNumbers RIGHT JOIN T_SerialNumbers ON T_PartNumbers.SKU =
T_SerialNumbers.SKU
WHERE (((T_PartNumbers.Description) Is Not Null) AND
((T_SerialNumbers.SerialNumber) Is Not Null))
ORDER BY T_SerialNumbers.SerialNumber;
This query Works fine (for wrong field) the tables PartNumber field is text
with a length of 25 is there a field length limit on Levenstein??
SELECT T_PartNumbers.Description AS lastnm, T_SerialNumbers.SerialNumber AS
Firstnm
FROM T_PartNumbers RIGHT JOIN T_SerialNumbers ON T_PartNumbers.SKU =
T_SerialNumbers.SKU
WHERE (((T_PartNumbers.Description) Is Not Null) AND
((T_SerialNumbers.SerialNumber) Is Not Null))
ORDER BY T_SerialNumbers.SerialNumber;
Thanks
Barry
this is probably not possible but i am hoping the user can search for a
serial number using "AHP-52020" and have "AHP52020 WHITE" show up in the
results. i have used LIKE *AHP-52020* but sometimes a number or space or typo
might keep the desired result from showing. Is levenstein the answer or
should i look elsewhere?? How does Google get there???
I am having trouble with the LevenshteinDistance sample by Doug Steele
Just for experimentation I added my data to his demo form through the
following two queries the demo form searched only the lastnm field I want to
use the levenstein diff on my SerialNumber field but get the following error
when I put it in the lastnm field. “Data type mismatch in query “
This is the query with the error the tables SerialNumber field is text with
a length of 40
SELECT T_PartNumbers.Description AS firstnm, T_SerialNumbers.SerialNumber AS
lastnm
FROM T_PartNumbers RIGHT JOIN T_SerialNumbers ON T_PartNumbers.SKU =
T_SerialNumbers.SKU
WHERE (((T_PartNumbers.Description) Is Not Null) AND
((T_SerialNumbers.SerialNumber) Is Not Null))
ORDER BY T_SerialNumbers.SerialNumber;
This query Works fine (for wrong field) the tables PartNumber field is text
with a length of 25 is there a field length limit on Levenstein??
SELECT T_PartNumbers.Description AS lastnm, T_SerialNumbers.SerialNumber AS
Firstnm
FROM T_PartNumbers RIGHT JOIN T_SerialNumbers ON T_PartNumbers.SKU =
T_SerialNumbers.SKU
WHERE (((T_PartNumbers.Description) Is Not Null) AND
((T_SerialNumbers.SerialNumber) Is Not Null))
ORDER BY T_SerialNumbers.SerialNumber;
Thanks
Barry