I have a Quiz module in which I have two tables quiz_question
and quiz_options
. quiz_question
is saving Questions
and quiz_option
saving options for particular questions.
table structure for
quiz_option
: id | question_id | text | is_correcttable structure for
quiz_question
id | title | desctiption |
Where question_id is foreign key to id of quiz_question
I want to write a query to update quiz_question and all its corresponding quiz_options is a single query.