Hi all,
Currently i am trying a search help functionality using search help exit.
in this functionality if a user gives a two word input then the two words should be linked with
AND condition.
for ex if input for address is nehru street then the where clause to be used should be like this
WHERE address cp nehru AND address cp street.
similarly if the user give N words as input then the N words should be linked with AND condition
and the where clause should be
WHERE address cp word1 AND address cp word2 AND address cp word3 AND address cp wordN.
i tried by replacing the space with * but it will work only when the order of the words in the field
is same as that of input.
ex: word1 word2 word3 word4 replaced by word1*word2*word3*word4.
but if the order of words in input is changed (ex: word3 word1 word4 word2) it wont work.
but still i have to retrieve the data (word1 word2 word3 word4) even if the input is in any order (word3 word1 word4 word2).
how this can be done.
i am going to use this where clause in the Loop at statement.
your suggestions will be really helpful to me.
Thanks and Regards,
Mohanarangan.