Answers for "like and not like operator in sql"

SQL
3

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
Posted by: Guest on May-09-2021
0

like and not like together in sql

SELECT TOP (15)* 
FROM [Users] 
WHERE [codename] LIKE '%Luis%'
AND [codename] NOT LIKE '%[LP]%'
Posted by: Guest on April-22-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language