Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/07/2010, 08:03
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 18 años, 8 meses
Puntos: 39
Respuesta: Fecha ayer y hace 4 dias

Prueba asi:
Código SQL:
Ver original
  1. WHERE datetime <= GETDATE()-1 AND fecha >= GETDATE()-4
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.