Please help me to write a sql query with the conditions as \'NOT LIKE IN\'
Select * from Table1 where EmpPU NOT Like IN (\'%CSE%\', \'%ECE%\', \'%EEE%\')
If you have set of words which you want to include/exclude in search from a particular column. You may want to use regular expression function of mysql.
Exclude set of words from a column :
SELECT
*
FROM
Table1
WHERE
EmpPU NOT REGEXP 'CSE|ECE|EEE';
Search set of words from a column :
SELECT
*
FROM
Table1
WHERE
EmpPU REGEXP 'CSE|ECE|EEE';