Struggling to find progress information

Struggling to find progress information

by Dave Emsley -
Number of replies: 4

Hi There,

I'm struggling to work out the SQL statement for a query I need.  I want to work out how far through a course a user is.  Sort of % completion.

I know where to find the information on all the resources on the course:

SELECT COUNT(l.id) COUNT, l.course, c.fullname coursename
FROM prefix_resource l INNER JOIN prefix_course c ON l.course = c.id
GROUP BY course
ORDER BY COUNT DESC


But where does Moodle hide what has already been completed on a course?


Cheers


Dave

Average of ratings: -
In reply to Dave Emsley

Re: Struggling to find progress information

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

It is stored in the course_modules_completion table.

Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Struggling to find progress information

by Dave Emsley -

Thanks Tim.


However I am really struggling to create a query to find the percentage of a course someone has completed.

Can anyone suggest something?


Cheers


Dave

In reply to Dave Emsley

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Struggling to find progress information

by Deborah Mundorff -

Looking for documentation on how to create the course completion checklist?