Skip to main content

Extracting Grade Report Data

Comments

1 comment

  • Jason Rodgers

    You could maybe do something with this

    SELECT 
    MGI.itemname,
    MGI.itemtype,
    MGI.itemmodule,
    MC.fullname,
    MCC.name as Category,
    MGG.* 
    FROM mdl_grade_grades MGG
    JOIN mdl_grade_items MGI ON MGG.itemid=MGI.id

    JOIN mdl_course MC ON MGI.courseid=MC.id
    JOIN mdl_course_categories MCC ON MCC.id=MC.category

    WHERE MC.id=9958

    Of course change the MC.id to reflect the course you are wanting and if you wanted to narrow down to quizzes you could add :  AND MGI.itemmodule='quiz'  to the where condition

    0

Please sign in to leave a comment.