
i want to count number of employees who have gmail or yahoo account the result should be
email, count
gmail.com 3
yahoo.com 2
tried so far
select count(emailid)
from employee
where emailid IN (select emailid from employee
WHERE emailid like '%@gmail.com'
or select emailid from employee WHERE emailid like '%@yahoo.com')