Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 like ope

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-07-11 : 11:25:16
moh writes "Hi all,
i want to make a query using like operator to search for existing some words in a certain field without taking into account the order of words
e.g. field1 like "%word1%word2%word3%" whatever the order of word1, word2 , word3
thanks."

nr
SQLTeam MVY

12543 Posts

Posted - 2006-07-11 : 11:29:55
where field1 like '%word1%'
and field1 like '%word2%'
and field1 like '%word3%'


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -