Created
September 5, 2019 22:21
-
-
Save parzibyte/45e567bc83b1e3cb4c91a8f2d09a647e 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
select turnos.numero, profesionales.nombre from turnos | |
inner join profesionales | |
on turnos.id_profesional = profesionales.id | |
and turnos.id_profesional is not null | |
and turnos.estado = 'ATENDIENDO' | |
and turnos.fecha = ? | |
group by profesionales.id, turnos.numero, profesionales.nombre; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment