SELECT Questoes.QuestaoID, Questoes.QuestaoTipo AS Type, Questoes.QuestaoResposta AS Answer, Respostas.Resposta AS Alternative, IIF(Type=1, Alternative, Answer) AnswerShown
FROM Questoes LEFT JOIN Respostas ON Questoes.QuestaoResposta = Respostas.RespostaID;
|