sbbrown9924
Technical User
What am I doing wrong here? I am doing a bunch of UNION SELECTS so that I can count the results of a checkbox field. This query only gives me back the results of counting the first condition [ctQ1comer].
SELECT COUNT(Q1) AS [ctQ1comer]
FROM Survey WHERE Q1=1 UNION
SELECT COUNT(Q1) AS [ctQ1mitchell] FROM Survey WHERE Q1=2 UNION
SELECT COUNT(Q1) AS [ctQ1dcam] FROM Survey WHERE Q1=3
SELECT COUNT(Q1) AS [ctQ1comer]
FROM Survey WHERE Q1=1 UNION
SELECT COUNT(Q1) AS [ctQ1mitchell] FROM Survey WHERE Q1=2 UNION
SELECT COUNT(Q1) AS [ctQ1dcam] FROM Survey WHERE Q1=3