Ver Mensaje Individual
  #2  
Antiguo 31-12-2010
Avatar de AzidRain
[AzidRain] AzidRain is offline
Miembro Premium
 
Registrado: sep 2005
Ubicación: Córdoba, Veracruz, México
Posts: 2.914
Reputación: 21
AzidRain Va camino a la fama
Separa las 2 condiciones y prueba...
Código SQL [-]
select sum(importe) as sumaa from lineasdespacho where (FECHA  between :FECHANAC1  AND :FECHANAC2) and (hora between :hora1 and :hora2);
__________________
AKA "El animalito" ||Cordobés a mucha honra||
Responder Con Cita