I am trying to count how many names in my table have at least one letter 'a' or 'A' and how many of them have at least one letter 'e' or 'E'
effectively my question is how to do something along these lines:
SELECT count(lower(nazwisko) like '%a%') as "Ile nazwisk z A", count(lower(nazwisko) like '%e%') as "Ile nazwisk z E"
FROM pracownicy
as this code returns
ORA-00907: missing right parenthesis
"nazwisko" is a string column. I want to do that in a single query preferably without subqueries (if possible) for learning purpouses
Im using oracle sql developer
for reference let me include the table I am working on and expected output