Personal I have the following scenario in the database:
Tables:
mdl_question_attempts (slot, questionid, rightanswer, responsesummary)
mdl_quiz_slots (slot, quizid, questionid)
In the mdl_question_attempts
table, attempts to respond to a given quiz are recorded. questionid
is the id
of the question, rightanswer
is the correct answer, responsesummary
is the answer given by the student.
In the mdl_quiz_slots
table, the questions that were applied to the students are recorded, where questionid
is the id
of the question, quizid
is the id
of the questionnaire. >
I would like to have the correct score for a particular quiz.