I am using moodle 2.8.1
From what I can see, there is no report in core moodle which displays the total number of learners who answered the questions and the total number of learners who got the question correct/incorrect. The closest thing to it is the Quiz Admin -> Results -> Responses report. But this, when downloaded and on the browser, shows the questions randomised. It is then very manually intensive to sort the questions to get a table similar to this below, including an extra column for 'Question Text':
I've now been looking into writing a SQL statement that will produce a table like this but I'm struggling to understand the quiz and questions data structure. This https://docs.moodle.org/dev/Quiz_database_structure documentation seems slightly outdated.
Could someone help me with this problem by either helping me write a SQL query for this or explaining which database tables and PK's/FK's link up to eachother for me to get this information.
Thanks.