Answers for "count with condition"

SQL
3

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 ...
Posted by: Guest on October-26-2020
0

count with condition laravel

$user = User::where('user_id' , 10);
$user->count();
Posted by: Guest on June-07-2020

Code answers related to "count with condition"

Code answers related to "SQL"

Browse Popular Code Answers by Language