until now I got this
but the results still not correct
select r.course,count(*)
from prefix_files f
JOIN prefix_context cx ON f.contextid=cx.id
JOIN prefix_resource r ON cx.instanceid=r.id
where mimetype="application/vnd.ms-powerpoint.presentation.macroEnabled.12"
OR mimetype="application/vnd.openxmlformats-officedocument.presentationml.presentation"
OR mimetype="application/vnd.openxmlformats-officedocument.presentationml.slideshow"
GROUP BY r.course
but the results still not correct
select r.course,count(*)
from prefix_files f
JOIN prefix_context cx ON f.contextid=cx.id
JOIN prefix_resource r ON cx.instanceid=r.id
where mimetype="application/vnd.ms-powerpoint.presentation.macroEnabled.12"
OR mimetype="application/vnd.openxmlformats-officedocument.presentationml.presentation"
OR mimetype="application/vnd.openxmlformats-officedocument.presentationml.slideshow"
GROUP BY r.course