Ver Mensaje Individual
  #2  
Antiguo 03-06-2019
juniorSoft juniorSoft is offline
Miembro
 
Registrado: abr 2005
Posts: 178
Reputación: 20
juniorSoft Va por buen camino
Si es Sql Server aunque lo estoy escribiendo aquí sin probarlo en el entorno debe andar por ahí

Código SQL [-]
select P.pregunta, R.opcion, TC.miRespuesta, (case  when R.opcion = TC.miRespuesta then 'Correcta' else 'Incorrecta')as Resultado  from tbl_PREGUNTAS P inner join tbl_RESPUESTAS R on (P.idpreg = R.idPreg)
inner join tbl_testCOMPLETADO TC on (P.idPreg = TC.idPreg)
where .... --la condicion del test  que se este evaluando
Responder Con Cita