【问题标题】:Linking Assignments to Rubrics in Moodle将作业链接到 Moodle 中的量规
【发布时间】:2018-03-27 20:33:19
【问题描述】:

Moodle 中的评分标准很好,但很难概括了解课程中使用的所有评分标准。 我正在尝试编写一个查询,列出所有作业及其评分标准。 这是我的查询:

SELECT cou.fullname, ass.name, def.name, cri.description
FROM mdl_course cou
inner join mdl_assign ass on ass.course = cou.id
inner join mdl_course_modules cmod on cmod.course = cou.id
inner join mdl_context ctx on ctx.instanceid = cmod.id
inner join mdl_grading_areas are on are.contextid = ctx.id
inner join mdl_grading_definitions def on def.areaid = are.id
inner join mdl_gradingform_rubric_criteria cri on cri.definitionid = def.id
where cou.fullname like '%rduin%1%' 
order by cou.fullname, ass.name, cri.sortorder

我花了大约两个小时才找到作业与其 grading_definitions 之间的链接,但查询仍然生成了太多记录。我想我必须添加另一个联接或关系,但不知道是哪个。 任何帮助将不胜感激!

【问题讨论】:

    标签: moodle assign relation


    【解决方案1】:

    我找到了解决方案:(作业和课程)和课程模块之间存在双重关系: 内连接 mdl_course_modules cmod on cmod.course = cou.id 和 ass.id=cmod.instance

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多