I have these three tables for a little quiz. Each question has one correct and three wrong answers
Table Name: Columns:
Questions QuestionID, QuestionText,
AnswerID (this stores id of correct answer)
Answers AnswerID, AnswerText, QuestionID
QuestionsAnswers QuestionID,AnswerID
This query
SELECT QuestionText, AnswerText
FROM [Questions] LEFT OUTER JOIN [Answers]
ON Questions.QuestionID=Answers.AnswerID;
gives me the following result
What is the capital of England? London
What is the capital of France? Paris
What is the capital of USA? Washington
I actually need to see the other three wrong answers grouped with each question as well. Kind of like
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
How can I modify my query above to get a similar result? Thanks