Ver Mensaje Individual
  #2  
Antiguo 24-12-2005
Avatar de AGAG4
AGAG4 AGAG4 is offline
Miembro
 
Registrado: ago 2004
Ubicación: Los Mochis, Sinaloa, México
Posts: 1.420
Reputación: 21
AGAG4 Va por buen camino
Resuelto

Use lo siguiente y me funciono:
Código SQL [-]
select sum(imporfac) from clidocum
where
tipomov='FM' and
fechafac<='31.10.2005' and
fechafac>='01.01.2004' and
/*15 Dìas Vencidos*/
cast('31.10.2005' as date)-fechafac between 15 and 30

Saludos....
Responder Con Cita