|
SELECT *
FROM t1
WHERE
(Col004 like '% keyword 1%') OR
(Col004 like '% keyword 2%') OR
and
(Col003 like 'Keyword 3%') OR
(Col003 like'Keyword 4 ') OR
I want to find the record in T1 where Col004 contains keyword 1 or keyword 2 and Col003 contains keyword 3 or keyword 4. For example, a record Col004 containing the keyword 1 and Col003 containing the keyword 4 are eligible, but the above statement does not seem to be implemented? ? How to write the correct one? |
|