I have a survey form and everytime someone completes the survey, a record is created in the survey_result table.
That table has a column for each question. Most are mutl-choice, some are free-text.
i.e. columns in table:
happy_or_sad (no. yes, sometimes)
are_you_busy (no, yes, sometimes)
your_suggestion
Now I want to display a summary of the multi-choice answers that have been submitted.
Question: Happy or Sad?
no (40%) yes (20%) sometimes (40%)
(or at least a count if percentage is too much work). What would be the most effecient query or queries I could use to get this?
Try: