Showing posts with label expecting. Show all posts
Showing posts with label expecting. Show all posts

Tuesday, March 27, 2012

Basic LIKE question?

not sure why I am having trouble here but I am using the following WHERE clause expecting to find all rows where any one of the the three keywords are present.

...WHERE Company.L_Keywords LIKE '%metal%' AND Company.L_Keywords LIKE '%tile%' AND Company.L_Keywords LIKE '%ceramic%'

however it appears to finding only the rows where all three words are present in the L_Keywords field

never mind - getting a little late - mind melt.

|||

Big Smile No problem, it happens to all of us.

For posterity, and for others who need the answer, the OR keyword should be used rather than AND.

Don