Good, someone knows what I have wrong?
I have these 3 tables:
PREGUNTAS PREGUNTAS_RESPUESTAS RESPUESTAS
idpregunta Idpregunta_res idrespuestas
pregunta idpregunta respuesta
idrespuesta
correcto
How can I take all the questions that are there, together with their answers?
select preguntas.pregunta,respuestas.respuesta
from preguntas_respuesta
inner join preguntas on preguntas.idpregunta=preguntas_respuestas.idpregunta_res
inner join respuestas on respuestas.idrespuesta=preguntas_respuestas.idpregunta_res
I'm doing that, but it shows me only the questions and each question a response. I would have to teach the questions, and of each question 4 answers. The data is well embedded in the tables.
Thank you!