Hi,
I am a beginner in SQL reports and I want to get Profile fields information and Activity completion on a report for one specific course.
I have the SQL for the custom profile fields :
SELECT u.firstname as 'prénom', u.lastname as 'nom', (SELECT UID.data FROM prefix_user_info_field UIF, prefix_user_info_data UID WHERE UID.fieldid = UIF.id AND UIF.shortname = 'jobhager' AND UID.userid = u.id) as 'Métier',
(SELECT UID.data FROM prefix_user_info_field UIF, prefix_user_info_data UID WHERE UID.fieldid = UIF.id AND UIF.shortname = 'region' AND UID.userid = u.id) as 'Région',
(SELECT UID.data FROM prefix_user_info_field UIF, prefix_user_info_data UID WHERE UID.fieldid = UIF.id AND UIF.shortname = 'uv' AND UID.userid = u.id) as 'Unité de vente'
FROM prefix_user u
And I found this ad-hoc contributed report for activity completion but I don't understand how to get the activity completion for each of the registred user of one course.
Could anyone help me ?