how to link mdl_question to mdl_quiz in SQL

Re: how to link mdl_question to mdl_quiz in SQL

by Chen PENG -
Number of replies: 0

I have solved it myself smile. it should link through mdl_quiz_slots.


Thanks


select q.* from mdl_question q

join mdl_quiz_slots qs

on qs.questionid = q.id

join mdl_quiz qz

on qz.id = qs.quizid

where qz.id=820