Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

condition in count sql

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


select sum(case Position when 'Manager' then 1 else 0 end)
from ...
 
PREVIOUS NEXT
Tagged: #condition #count #sql
ADD COMMENT
Topic
Name
4+9 =