Last active
February 11, 2020 03:11
-
-
Save parzibyte/fdc72ab04a758cb6e8796d3abf75d1f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$idCurso = $request->get("idCurso"); | |
$alumnos = DB::select( | |
"select nombre from alumnos | |
where id not in | |
(select alumnos.id | |
from alumnos | |
inner join alumno_curso | |
on alumnos.id = alumno_curso.id_alumno | |
and alumno_curso.id_curso = ?)", | |
[ | |
$idCurso | |
] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment