Hya Rebecca,
So we run several reports that will help track the things we need.
I underlined and bold the 'date line' This generated the date and time they completed the course. This prints out to look like this:
08/10/2020 07:52:04
Our
SQL report setup looks like this:
SELECT
c.shortname AS 'Course Name',
u.lastname AS 'Last Name',
u.firstname AS 'First Name',
u.email,
uid.data AS birthday,
uid2.data AS status,
uid3.data AS officercode,
DATE_FORMAT(FROM_UNIXTIME(p.timecompleted),'%m/%d/%Y %T') AS 'Completed Date'
FROM
prefix_course_completions AS p
JOIN prefix_course AS c ON p.course = c.id
JOIN prefix_user AS u ON p.userid = u.id
JOIN prefix_user_info_data AS uid ON uid.userid = u.id
JOIN prefix_user_info_field AS uif ON uid.fieldid = uif.id
JOIN prefix_user_info_data AS uid2 ON uid2.userid = u.id
JOIN prefix_user_info_field AS uif2 ON uid2.fieldid = uif2.id
JOIN prefix_user_info_data AS uid3 ON uid3.userid = u.id
JOIN prefix_user_info_field AS uif3 ON uid3.fieldid = uif3.id
WHERE
c.enablecompletion = 1
and uif.shortname = 'birthday'
and uif2.shortname = 'status'
and uif3.shortname = 'officercode'
and from_unixtime(p.timecompleted) >
date_sub(now(), interval 1 day)
GROUP BY u.username
ORDER BY c.shortname
From there, I can
download it in excel format and manipulate the dates based on sort order.
Dave