Ver Mensaje Individual
  #6  
Antiguo 21-09-2004
Avatar de guillotmarc
guillotmarc guillotmarc is offline
Miembro
 
Registrado: may 2003
Ubicación: Huelva
Posts: 2.638
Reputación: 24
guillotmarc Va por buen camino
Ademas las subconsultas no són necesarias.

Esto es lo mismo :

Código SQL [-]
Select *from TFAC_PROMOCIONES
where sucursal=1 and cliente=1 and
FECHAINICIAL <='09/21/2004' and
FECHAFINAL   >='09/21/2004' and
HoraInicial <= current_time and
HoraFinal >= current_time

Saludos.
__________________
Marc Guillot (Hi ha 10 tipus de persones, els que saben binari i els que no).
Responder Con Cita