Hello... I need the same report for moodle 2.7
Any idea?
Hello... I need the same report for moodle 2.7
Any idea?
try this
SELECT concat(pu.lastname," ",pu.firstname) Teacher,
COUNT(pu.id)
FROM prefix_role_assignments AS ra
JOIN prefix_user AS pu ON ra.userid = pu.id
WHERE ra.roleid=3
GROUP BY pu.id
ORDER BY COUNT(pu.id) DESC