@@ -575,6 +575,34 @@ using (select ss.exam_id,ss.subject_id,zz.id from union_yuejuan_source_process.b
...
@@ -575,6 +575,34 @@ using (select ss.exam_id,ss.subject_id,zz.id from union_yuejuan_source_process.b
inner join union_yuejuan_source_process.bus_exam_question_del_log ss on zz.exam_id=ss.exam_id and zz.subject_id=ss.subject_id and zz.record_id=ss.record_id
inner join union_yuejuan_source_process.bus_exam_question_del_log ss on zz.exam_id=ss.exam_id and zz.subject_id=ss.subject_id and zz.record_id=ss.record_id
where ss.oper_type=3 and ss.is_execute=0) b
where ss.oper_type=3 and ss.is_execute=0) b
where a.exam_id=b.exam_id and a.subject_id=b.subject_id and b.id=a.subj_ques_score_id;
where a.exam_id=b.exam_id and a.subject_id=b.subject_id and b.id=a.subj_ques_score_id;
-------------------------
-------------------------
delete from union_yuejuan_source_process.bus_objective_question_config a
using union_yuejuan_source_process.bus_exam_question_del_log b
where b.is_execute=0 and a.exam_id=b.exam_id and a.subject_id=b.subject_id and b.oper_type=4;
delete from union_yuejuan_source_process.bus_student_obj_ques_score a
using union_yuejuan_source_process.bus_exam_question_del_log b
where b.is_execute=0 and a.exam_id=b.exam_id and a.subject_id=b.subject_id and b.oper_type=4;
delete from union_yuejuan_source_process.bus_student_subj_ques_arbitrate_record a
using union_yuejuan_source_process.bus_exam_question_del_log b
where b.is_execute=0 and a.exam_id=b.exam_id and a.subject_id=b.subject_id and b.oper_type=4;
delete from union_yuejuan_source_process.bus_student_subj_ques_score a
using union_yuejuan_source_process.bus_exam_question_del_log b
where b.is_execute=0 and a.exam_id=b.exam_id and a.subject_id=b.subject_id and b.oper_type=4;
delete from union_yuejuan_source_process.bus_student_subj_ques_score_record a
using union_yuejuan_source_process.bus_exam_question_del_log b
where b.is_execute=0 and a.exam_id=b.exam_id and a.subject_id=b.subject_id and b.oper_type=4;
delete from union_yuejuan_source_process.bus_subjective_question_config a
using union_yuejuan_source_process.bus_exam_question_del_log b
where b.is_execute=0 and a.exam_id=b.exam_id and a.subject_id=b.subject_id and b.oper_type=4;
----------------
----------------
----------------
----------------
delete from union_yuejuan_source_process.gp_waiting_statistics_exam;
delete from union_yuejuan_source_process.gp_waiting_statistics_exam;