You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Hacemos un JOIN de las tablas que relacionan alumnos con asociaciones y estas con profesores para luego sacar sólo las de cierto identificador e alumno.
276
-
query='select * from Matricula where id_asignatura='+id_asignatura+' and id_curso='+id_curso+';'
279
+
query='select id, nombre, apellidos, dni from Alumno where id in (select id_alumno from Matricula where id_clase ='+id_clase+'and id_asignatura ='+id_asignatura+')'
#Hacemos un JOIN de las tablas que relacionan alumnos con asociaciones y estas con profesores para luego sacar sólo las de cierto identificador e alumno.
319
-
query='select * from Imparte where id_asignatura='+id_asignatura+' and id_curso='+id_curso+';'
323
+
query='SELECT nombre, apellidos, dni from Profesor where dni in (select id_profesor from Imparte where id_clase='+id_clase+'and id_asignatura='+id_asignatura+')'
0 commit comments