T
Terry
Hi,All
I am developing a client feedback program. Users can feedback clients
base on defined questions by the program, and fill in the answers into
program. The following table structure I designed is recording questions and
client's answers.
ClientID: number
question1: text(answer is: satisfy, so so, unsatisfy)
question2: text(answer is: yes or no)
....
question10: text(answer is: good, commonly, bad)
I designd a form base on above table, and feedback 65 clients by the form.
The next step, I must generate the feedback report. But how can I statistic
the data?
I try to statistic each question. The SQL query sentence is:
SELECT Count(ClientID) AS subtotal, question1
FROM tblFeedback
GROUP BY question1;
The result is:
subtotal question1
2 so so
62 satisfy
1 unsatisfy
But if I add qustion2 into above SQL query sentence:
SELECT Count(ClientID) AS subtotal, question1, question2
FROM tblFeedback
GROUP BY question1, question2;
The result is:
subtotal question1 question2
1 unsatisfy unsatisfy
2 unsatisfy satisfy
40 satisfy satisfy
5 satisfy so so
15 so so satisfy
2 so so so so
This result is NOT what I need! The result I expected is:
satisfy so so unsatisfy
question1 62 2 1
question2 62 1 3
question3 54 7 4
....
question10 57 7 1
Would you tell me how to do it and get above result? Thank you very much!!!
I am developing a client feedback program. Users can feedback clients
base on defined questions by the program, and fill in the answers into
program. The following table structure I designed is recording questions and
client's answers.
ClientID: number
question1: text(answer is: satisfy, so so, unsatisfy)
question2: text(answer is: yes or no)
....
question10: text(answer is: good, commonly, bad)
I designd a form base on above table, and feedback 65 clients by the form.
The next step, I must generate the feedback report. But how can I statistic
the data?
I try to statistic each question. The SQL query sentence is:
SELECT Count(ClientID) AS subtotal, question1
FROM tblFeedback
GROUP BY question1;
The result is:
subtotal question1
2 so so
62 satisfy
1 unsatisfy
But if I add qustion2 into above SQL query sentence:
SELECT Count(ClientID) AS subtotal, question1, question2
FROM tblFeedback
GROUP BY question1, question2;
The result is:
subtotal question1 question2
1 unsatisfy unsatisfy
2 unsatisfy satisfy
40 satisfy satisfy
5 satisfy so so
15 so so satisfy
2 so so so so
This result is NOT what I need! The result I expected is:
satisfy so so unsatisfy
question1 62 2 1
question2 62 1 3
question3 54 7 4
....
question10 57 7 1
Would you tell me how to do it and get above result? Thank you very much!!!