A
andy_42 via AccessMonster.com
Hello,
I am having difficulty counting numbers within a very large table based on
survey results.
The table is set as follows subjectname, q1a, q1b, q1c, q1d...q5e
Values for each question range from 1-5 and the field could be empty if no
response was given.
I have tried the something similar to the following and it is not counting
correctly.
Select subjectname, count(iff(q1a=5 or q1b=5 ... or q5e=5, 1, 0))
from table
group by subjectname
My desired outcome will be to display the total 5's, Total Responses for the
subject (count where the response is in 1-5), and from this I can calculate
percentages within each rating (15% of participants rated the subject as a 5)
Any help is appreciated. Thanks!
I am having difficulty counting numbers within a very large table based on
survey results.
The table is set as follows subjectname, q1a, q1b, q1c, q1d...q5e
Values for each question range from 1-5 and the field could be empty if no
response was given.
I have tried the something similar to the following and it is not counting
correctly.
Select subjectname, count(iff(q1a=5 or q1b=5 ... or q5e=5, 1, 0))
from table
group by subjectname
My desired outcome will be to display the total 5's, Total Responses for the
subject (count where the response is in 1-5), and from this I can calculate
percentages within each rating (15% of participants rated the subject as a 5)
Any help is appreciated. Thanks!