I can't insert the values of the third interaction of a scorm . I see the values of the second interaction reported. Where am I wrong? thank you
this is the code
SELECT scc.userid AS User, sct.name AS Name, scc.scoid AS SCORM_ID, sct.module AS Module, scc.value AS Touch_1, sct.value AS touch_2, sct.value AS Touch_3
FROM
(SELECT u.id AS userid, st.scoid AS scoid, st.value AS value
FROM prefix_course AS c
LEFT JOIN prefix_scorm AS sc ON sc.course=c.id
LEFT JOIN prefix_scorm_scoes_track AS st ON st.scormid=sc.id
LEFT JOIN prefix_user AS u ON u.id=st.userid
WHERE st.element='cmi.interactions_0.time') AS scc
LEFT JOIN
(SELECT c.fullname Course, sc.name AS module, st.scoid AS scoid, u.id AS userid, u.firstname name, st.attempt as Attempt, st.value AS value
FROM prefix_course AS c
LEFT JOIN prefix_scorm AS sc ON sc.course=c.id
LEFT JOIN prefix_scorm_scoes_track AS st ON st.scormid=sc.id
LEFT JOIN prefix_user AS u ON u.id=st.userid
WHERE st.element='cmi.interactions_1.time') AS sct
ON sct.scoid=scc.scoid
AND sct.userid=scc.userid
ORDER BY scc.userid
this is the wrong result