This is not properly documented, but the diagram at the top of this page may help you: http://docs.moodle.org/en/Quiz_database_structure
Quiz
Where are results stored in Database
This discussion has been locked so you can no longer reply to it.