condition in count sql
snippet in sql

condition in count sql

user1372

select count(case Position when 'Manager' then 1 else null end)
from ...


select sum(case Position when 'Manager' then 1 else 0 end)
from ...