Reputation: 11
Below is the scenario.
We have a field named "Description", the requirement is:
Can anyone please tell me how can this be accomplished.
Any guidance will be highly appreciated.
Thanks and Regards, Aarti
Upvotes: 1
Views: 44
Reputation: 7240
select description from tablename where
description like '%word1%' and
description like '%word2%' and
description like '%word3%' and
description like '%word4%' and
description like '%word5%'
It would be useful to know what happens to "words" if they are less than 5. Are they null? Are they ''? Example with null:
....(description like '%word2%' or word2 is null) and...
Upvotes: 1