case insensitive sql like code example
Example 1: sql like case sensitive
-- Postgresql case insensitive:
SELECT * FROM people WHERE name ILIKE 'JOHN'
-- John
-- JOHN
-- john
Example 2: case insensitive sql
-- find everyone with first_name contains d case insensitive manner
Make everthing either lower or upper case
SELECT FIRST_NAME , LAST_NAME
FROM EMPLOYEES
WHERE LOWER(FIRST_NAME) LIKE '%d%' ;