Reputation: 567
I am working on a multi-choice questions web-app. A user will have to answer 50 to 100 multiple-choice questions. The number of possible answers for each question can differ from 3 to 4 but there is only 1 correct answer.
I would like to create a page stats where the user can come back to the answered questions and see what answer he did select. I am not sure what would be the proper way to do that.
So far I have:
users table
Upvotes: 0
Views: 94
Reputation: 1796
I would organize the answers
table like this:
In that way:
Then, you will need a table, which holds the user's answers:
Now, you can easily construct a query, which shows the required data.
Upvotes: 1