by roshan kolar.
Hi,
I'm not a noob at SQl, this might be pretty easy for most of you. Kindly help.
I have this query from https://docs.moodle.org/25/en/ad-hoc_contributed_reports#Most_Active_courses
---------------------------------------------------------------------------------------------------------------------
SELECT COUNT(l.id) hits, l.course courseId, c.fullname coursename
FROM mdl_log l INNER JOIN mdl_course c ON l.course = c.id
GROUP BY courseId
ORDER BY hits DESC
-------------------------------------------------------------------------------------------------------------------
What do I do if I wanted the query to show the most active course from 25/09/2016 till 15/01/2017?
I have a couple of queries like this which give the result from the beginning of our Moodle time (that I don't want), but I want the query to show just for a specific period so that I can reuse this every semester. Hope I made myself clear here.
Thanks in advance for help.