Hi,
I have these two columns in my table. I want my query to tell me how many records have oxygen indicated and also, how many of the OxyIndic instances were given oxygen. According to my table below, the answers should be 4 and 3. I created the queries:
Query1
SELECT Sum(IIf(OxyIndic="Yes",1,0)) AS Oxygen_Indication
from table1; and when I run it separately, it gives me 4
Query2
SELECT Sum(IIf(O2Indic="Yes",1,0)) AS HowMany
FROM table1
WHERE O2Given="Yes";
when I run them separately, they give me 4 and 3 respectively but when I try to combine both queries I get output 3 and 3. Could someone advise on how to fix this please? Your help is much appreciated
table1
OxyIndic OxyGiven Yes Yes Yes No Yes Yes Yes Yes No Yes