( sum( t.play_length )>= t2.vod_length, 1, 0 ) AS cnt
t.vod_id,
FROM
IF
vod_play_history t
( sum( t.play_length )>= t2.vod_length, 1, 0 ) AS cnt
LEFT JOIN vod_dict t2 ON t.vod_id = t2.id
FROM
WHERE
vod_play_history t
t.class_id = #{classId}
LEFT JOIN vod_dict t2 ON t.vod_id = t2.id
AND t.delete_date IS NULL
WHERE
GROUP BY
t.class_id = #{classId}
t.class_id,
AND t.delete_date IS NULL
t.member_id,
GROUP BY
t.vod_id
t.class_id,
) t3
t.member_id,
) t2 ON t.class_id = t2.class_id
t.vod_id
LEFT JOIN (
) t3
SELECT
) t2 ON t.class_id = t2.class_id
t.id,
LEFT JOIN (
count( 1 ) AS total_vods
SELECT
FROM
t.id,
class_dict t
count( 1 ) AS total_vods
LEFT JOIN course_content t2 ON t.course_id = t2.course_id
FROM
LEFT JOIN vod_dict t3 ON t2.id = t3.content_id
class_dict t
WHERE
LEFT JOIN course_content t2 ON t.course_id = t2.course_id
t.delete_date IS NULL
LEFT JOIN vod_dict t3 ON t2.id = t3.content_id
AND t2.delete_date IS NULL
WHERE
AND t3.delete_date IS NULL
t.delete_date IS NULL
AND t.id = #{classId}
AND t2.delete_date IS NULL
) t3 ON t.class_id = t3.id
AND t3.delete_date IS NULL
LEFT JOIN (
AND t.id = #{classId}
SELECT
) t3 ON t.class_id = t3.id
t2.class_id,
LEFT JOIN (
sum(
SELECT
IF
t2.class_id,
( t2.cnt >= t4.paper_cnt, 1, 0 )) AS pass_cnt
sum(
FROM
IF
(
( t2.cnt >= t4.paper_cnt, 1, 0 )) AS pass_cnt
SELECT
FROM
t2.class_id,
(
t2.member_id,
SELECT
sum( t2.cnt ) AS cnt
t2.class_id,
FROM
t2.member_id,
(
sum( t2.cnt ) AS cnt
SELECT
FROM
t.paper_id,
(
t.class_id,
SELECT
t.member_id,
t.paper_id,
IF
t.class_id,
( max( t.score )>= 60, 1, 0 ) AS cnt
t.member_id,
FROM
IF
exercise_done_result t
( max( t.score )>= 60, 1, 0 ) AS cnt
WHERE
FROM
t.class_id = #{classId}
exercise_done_result t
AND t.delete_date IS NULL
WHERE
GROUP BY
t.class_id = #{classId}
t.paper_id,
AND t.delete_date IS NULL
t.class_id,
GROUP BY
t.member_id
t.paper_id,
) t2
t.class_id,
GROUP BY
t.member_id
t2.class_id,
) t2
t2.member_id
GROUP BY
) t2
t2.class_id,
LEFT JOIN class_dict t3 ON t2.class_id = t3.id
t2.member_id
LEFT JOIN ( SELECT t.course_id, count( 1 ) AS paper_cnt FROM paper_dict t WHERE t.delete_date IS NULL GROUP BY t.course_id ) t4 ON t3.course_id = t4.course_id
) t2
) t4 ON t.class_id = t4.class_id
LEFT JOIN class_dict t3 ON t2.class_id = t3.id
LEFT JOIN ( SELECT t.class_id, sum( 1 ) AS ask_cnt FROM answering_question t WHERE t.class_id = #{classId} AND t.delete_date IS NULL ) t5 ON t.class_id = t5.class_id
LEFT JOIN ( SELECT t.course_id, count( 1 ) AS paper_cnt FROM paper_dict t WHERE t.delete_date IS NULL GROUP BY t.course_id ) t4 ON t3.course_id = t4.course_id
) t4 ON t.class_id = t4.class_id
LEFT JOIN ( SELECT t.class_id, sum( 1 ) AS ask_cnt FROM answering_question t WHERE t.class_id = #{classId} AND t.delete_date IS NULL ) t5 ON t.class_id = t5.class_id