It worked! I just had to make one small change - putting in the "as" keyword, as follows:
mysql> select question, sum(case when response_text="TRUE" then 1 else 0 end) as yes, sum(case when response_text="FALSE" then 1 else 0 end) as no from response where question > 76 and question < 84 group...
Hi,
I feel sure this should be possible, but can't quite figure it out. I have a database table that contains responses to a number of questions. Questions 77-83 are Yes/No questions, and I'd like to see, for each question, how many people answered yes and how many answered no. I can get the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.