Hello,
I have a table containing questions answers (answer is between 0 and 5). I got 50 questions and for each question you need to give 3 sub answers.
Example:
3, 0, 5 - is the first question answer
1, 4, 2 - is the second answer and so on and on 50 times.
This means i got 150 lines in the table not including the
PersonID which is the main field.
The answers in the table are named this way:
Answer1a, Answer1b, Answer1c
Answer2a, Answer2b, Answer2c and on and on..
What i want to do is to check how much times the answer to each question, was 0,1,2,3,4 and 5. Don't forget that you have here 3 answers per question so i need to check how much times (count) Answer1a was 0-5. and until Answer50c...
-
I thought i'll do this with this simple SQL:
Select count(Answer1a)
From Answers
Where Answer1a = 0;
-
But this is only one! This means i need to do this SQL for each one of the 50 * 3 * 6 = 900!
I'm sure there is a better way to do this.
I hope you'll help me with this one.
Thanks.
I want to create a
I have a table containing questions answers (answer is between 0 and 5). I got 50 questions and for each question you need to give 3 sub answers.
Example:
3, 0, 5 - is the first question answer
1, 4, 2 - is the second answer and so on and on 50 times.
This means i got 150 lines in the table not including the
PersonID which is the main field.
The answers in the table are named this way:
Answer1a, Answer1b, Answer1c
Answer2a, Answer2b, Answer2c and on and on..
What i want to do is to check how much times the answer to each question, was 0,1,2,3,4 and 5. Don't forget that you have here 3 answers per question so i need to check how much times (count) Answer1a was 0-5. and until Answer50c...
-
I thought i'll do this with this simple SQL:
Select count(Answer1a)
From Answers
Where Answer1a = 0;
-
But this is only one! This means i need to do this SQL for each one of the 50 * 3 * 6 = 900!
I'm sure there is a better way to do this.
I hope you'll help me with this one.
Thanks.
I want to create a