Good Morning All,
I have finally pieced a report together that is pulling my scorm completions and also listing my custom profile fields but it is also generating multiple (10 or more) lines in the resulting report for each user for the same scorm. Any ideas on errors I'm missing is greatly appreciated!! Thank you,
SELECT u.lastname, u.firstname, u.email, uid.data AS comp, uid2.data AS post, uid3.data AS detachment, c.shortname, st.attempt Attempt,st.VALUE
STATUS,FROM_UNIXTIME(st.timemodified,"%m-%d-%Y") DATE
FROM prefix_scorm_scoes_track AS st
JOIN prefix_user AS u ON st.userid=u.id
JOIN prefix_scorm AS sc ON sc.id=st.scormid
JOIN prefix_course AS c ON c.id=sc.course
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 st.VALUE='completed'
ORDER BY c.fullname, u.lastname,u.firstname, st.attempt