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%\')
you cant combine LIKE and IN
you can do:
select * from Table1 where EmpPU not in ('%CSE%', '%ECE%', '%EEE%')
but you wont benefit from the % wildcard
if you need the % the only option is:
Select * from Table1 where EmpPU not like '%CSE%' and EmpPU not like '%ECE%' and EmpPU not like '%EEE%'