"GabrielG" <(E-Mail Removed)> wrote in
news:#(E-Mail Removed):
> created a table with approximately 20 columns. The columns have an
> entry of Yes or no based on a questionnaire from survey. My question
> is what can I do to get a result of my table I would like to know how
> many "Yes" and "no" I have. I don't know how to add them or get this
> information.
That is largely because the db design is wrong. The twenty yes/no columns
should be twenty rows in an Answers table like this (* means primary key,
as usual):-
Answers
=======
*QuestionnaireID references the main Questionnaires table
*QuestionNumber references the Questions table, if you have one
Value true/false, reports the actual answer given.
so it looks like this:
QuestionnaireID QNumber Value
=============== ======= -----
Eric 1 Yes
Eric 2 No
Samantha 1 Yes
Samantha 2 Yes
It then becomes easy to count how many questions were answered, how many
yesses, how many said (Yes, No) and so on. As you have discovered,
designing big wide tables like spreadsheets does not solve many problems.
B Wishes
Tim F
|