where not like sql code example
Example 1: sql is not like
SELECT * FROM emp
WHERE name NOT LIKE 'a%' -- not starting with a
AND name NOT LIKE '%a' -- not ending with a
AND name NOT LIKE '%a%' -- not containing a
AND upper(name) NOT LIKE '%A%' -- not containing a or A
Example 2: SQL is not like
SELECT * FROM Student
WHERE FirstName NOT LIKE '%B%'