我有这三个表来做一个小测验。每个问题有一个正确和三个错误的答案
表名: 列: 问题 QuestionID、QuestionText、 AnswerID(存储正确答案的 id) 答案 AnswerID、AnswerText、QuestionID QuestionsAnswers QuestionID,AnswerID
这个查询
SELECT QuestionText, AnswerText
FROM [Questions] LEFT OUTER JOIN [Answers]
ON Questions.QuestionID=Answers.AnswerID;
给我以下结果
What is the capital of England? London
What is the capital of France? Paris
What is the capital of USA? Washington
我实际上还需要查看与每个问题分组的其他三个错误答案。有一些像
What is the capital of England? London
What is the capital of England? Berlin
What is the capital of England? BikiniBottom
What is the capital of England? Nottingham
... -- more results for France, USA and others follow
如何修改上面的查询以获得类似的结果?谢谢