I'm trying to exclude rows that contain two words. In more details, I want to include rows that contain uber, but don't include rows that contain uber eats.
I'm using this condition:
WHERE LOWER(name) LIKE '%uber%'
AND NOT (LOWER(name) LIKE '%ubereats%' AND LOWER(name) LIKE '%uber%eats%')
But I still get some unwanted rows like the following:
UBER EATS
UBER *EATS
UBER* EATS
In a query, I need to exclude any of uber eats related ones. In a separate query, I want only those that are related to uber eats.