临时.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --状态:正常;审核通过;排除上传题
  2. SELECT ShiTiALL.*
  3. FROM dbo.Exam_e_QuestionInfo AS ShiTiALL
  4. INNER JOIN dbo.Exam_e_QuestionType AS LeiXingALL
  5. ON LeiXingALL.QuestionTypeID = ShiTiALL.QuestionTypeID
  6. WHERE 1=1
  7. AND LeiXingALL.QuestionTypeName not LIKE '%上传%'
  8. AND ShiTiALL.Status=0--正常
  9. AND ShiTiALL.AuditingFlag=1--审核通过;
  10. select c.CourseCode,c.CourseName from exam_e_courseinfo c
  11. inner join
  12. ( SELECT distinct q.CourseCode
  13. FROM Exam_e_QuestionInfo AS q
  14. INNER JOIN Exam_e_QuestionType AS t
  15. ON t.QuestionTypeID = q.QuestionTypeID
  16. WHERE 1=1
  17. AND t.QuestionTypeName not LIKE '%上传%'
  18. AND q.Status=0
  19. AND q.AuditingFlag=1
  20. and q.OuterSystemID=3372)tm
  21. on c.CourseCode=tm.CourseCode
  22. where c.SystemID=3372;
  23. select tm.* from
  24. (select count(DISTINCT t.root_id) cc,t.CourseCode
  25. from exam_e_coursechapter t
  26. inner join temp_course c on t.CourseCode=c.`code`
  27. inner join exam_e_questioninfo q on t.ChapterID=q.ChapterID
  28. where t.OuterSystemID=3372 and t.ParentChapterlID !=0
  29. GROUP BY t.CourseCode)
  30. tm where tm.cc=1;
  31. select t.ChapterID id,t.ParentChapterlID parent_id,t.root_id,t.ChapterTitle type_name
  32. from exam_e_coursechapter t
  33. where t.OuterSystemID=3372 and t.CourseCode='209001' and t.ParentChapterlID !=0
  34. and EXISTS(select 1 from exam_e_questioninfo q where t.ChapterID=q.ChapterID)
  35. order by t.OrderNumber;
  36. http://any.cnzx.info:81/
  37. 成教考试平台的前缀
  38. 是只筛选3372系统的数据
  39. answerType 1-单选
  40. 2-多选
  41. 3-简单文本
  42. 4-复杂文本
  43. 5-文件上传
  44. 6-英译汉
  45. 7-汉译英
  46. 1-易
  47. 3-中
  48. 5-难
  49. 题型表获取OuterSystemlD in (0,3372)就行
  50. 主观题就是简答题
  51. 填空题没有空标识当简答题处理