Hello, first time here,I hope I am posting to the correct forum.
I have a table with say 10 columns C1,..,C2 with 20 entry's of yes or no each.
I am trying to subtract the COUNT(C2)-COUNT(C1)
I am trying
I get total = 0 but should be 1.
Clearly doing something wrong.
Thanks
I have a table with say 10 columns C1,..,C2 with 20 entry's of yes or no each.
I am trying to subtract the COUNT(C2)-COUNT(C1)
I am trying
Code:
SELECT PM11, PM21, COUNT(PM21) - Count(PM11) AS Total
FROM tblFlash4
WHERE PM11='Yes' AND PM21='Yes'
GROUP BY PM11, PM21;
I get total = 0 but should be 1.
Clearly doing something wrong.
Thanks