I have some little classroom surveys to get the students up and talking. The students should walk around the classroom, ask everyone the question and send the answers from their phone.
So far I only have polls with 1 question, like: What is your biggest fear about marriage? There are 13 choices.
The topic of Unit 2 is “Cloning”.
My MySQL table: poll_cloningQ1 has the columns: id, gender, yes, no, not_sure, totals
id is just in case an auto-increment primary key may be useful.
gender is: male, female, other (so this table only has 3 rows)
The columns: yes, no, not sure are incremented according to gender and answer.
totals is just the sum of answers in each row, for calculating %ages.
Later on display the results and % results according to gender in output.php and ask students to comment on the results.
Trouble is for topic “cloning”, I have 13 questions. Do I really need 13 tables?
Is there a convenient way to somehow put a table within a table?
I know I can just copy the data structure of table: poll_cloningQ1 and rename it poll_cloningQ2 and so on, but I am hoping I can put all the data in 1 table, somehow.
Actually, the only problem I see is that the SELECT query for the output.php will have to query 13 tables. Since their structure is identical, I suppose that is not too difficult.