Dear Moodlers,
We have been using the assignment module with the rubric grading option at our school. Our staff would like to see the raw scores of rubric categories, not only the final results in an Excel file. I started to work on a report using the configurable reports block but I am stuck: I don't know how the value of the <itemid> field in the <grading_instances> table relates to the user. It would be nice to add the students' name in the report.
This is how far I got with my query:
SELECT grc.description, grl.definition, grl.score, gd.name, FROM_UNIXTIME(gin.timemodified) AS modified, rubm.username AS ratername, crs.shortname, asg.name AS assignment, gin.itemid
FROM {course} AS crs
JOIN {course_modules} AS cm ON crs.id = cm.course
JOIN {assign} AS asg ON asg.id = cm.instance
JOIN {context} AS c ON cm.id = c.instanceid
JOIN {grading_areas} AS ga ON c.id=ga.contextid
JOIN {grading_definitions} AS gd ON ga.id = gd.areaid
JOIN {gradingform_rubric_criteria} AS grc ON (grc.definitionid = gd.id)
JOIN {gradingform_rubric_levels} AS grl ON (grl.criterionid = grc.id)
JOIN {grading_instances} AS gin ON gin.definitionid = gd.id
JOIN {user} AS rubm ON rubm.id = gin.raterid
JOIN {gradingform_rubric_fillings} AS grf ON (grf.instanceid = gin.id)
AND (grf.criterionid = grc.id) AND (grf.levelid = grl.id)
WHERE gin.status = 1
Thank you,
Éva