select patientID, count(1)
from dbo (nolock)
where admissiontime between '2020-01-31' and '2020-02-01'
patientID in (0, 1)
/*
0 means arthritis
1 means asthma
*/
So above query is used to find how many times there was a request from hospital for both asthma and arthritis related case.
It is put in a group by the patientID
, but does that count(1)
mean it counts everything patientID?