How can I extend the excellent SQL code provided here by Russell England: sql code for activity completion in moodle to include the Scorm Activity title (the name entity in the mdl_scorm table) in the report for scorm activities?
I can't find keys to reference the cmc.coursemoduleid entity with the primary key of the mdl_scorm table.
Add
m.name = 'scorm'to the join on modulesAnd add a join to the scorm table using
cm.instancefor the scorm id