次の3つの表からsurvey_id、、、question_idを選択したいと思いますquestion_text。answer_id
SurveyTableには、次のものがあります。
Survey{survey_id,survey_title}
QuestionTableに私は持っています:
Question{survey_id,question_id,question_text}
AnswerTableの場合:
Answer{question_id,answer_id,answer_text}
結合を使用してこれらのテーブルから選択したいと思います。survey_idがQuestionTableおよびSurveyTableの値と等しい場合。