Posted by SQL Learner on 01/22/07 18:17
Thanks again, Alex.
I am having problem put the SQL in Access. Could you tell me the logic
of the select statement?
(SELECT MIN(Value) FROM TblWord_Number WHERE Street LIKE '%'+Word+'%'
AND Street LIKE CAST(Number AS VARCHAR(50))+'%')
Why are we using Min(Value) and what does "CAST(Number AS
VARCHAR(50))+'%')" mean and do?
I got your partial matching SQL code as follow:
========================
SELECT t.*
FROM tblStreet AS t
WHERE (((Exists (SELECT 1 FROM tblWord w WHERE t.Street LIKE
'*'+Word+'*'))<>False));
========================
I seems a little different from your new one.
This seems like a difficult query. Please help.
- Grasshopper -
[Back to original message]
|