EjemplosDuoc.es.tl
  Tope Horario
 


SELECT COUNT(CODIGO) AS COD
FROM TABLA WHERE DIA =  diaAbuscar
AND ((HORAINICIO < horainicio AND HORAFINAL  > horainicio )
OR   (HORAINICIO < horafin    AND HORAFINAL  > horafin          )
OR   (HORAINICIO > horainicio AND HORAINICIO < horafin       )
OR   (HORAFINAL  > horainicio AND HORAFINAL  < horafin       ))
 
   
 
Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
Registrarse gratis