新建文本文档.txt 1.7 KB

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