Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/08/2012, 09:57
Avatar de carlos_belisario
carlos_belisario
Colaborador
 
Fecha de Ingreso: abril-2010
Ubicación: Venezuela Maracay Aragua
Mensajes: 3.156
Antigüedad: 14 años
Puntos: 461
Respuesta: Mostrar aquellos casos que no han dado seguimiento en las últimas 48 horas

carlos_belisaro::modeTroll('Eso no tiene que ver con php'); :P, ahora el segumiento me imagno que lo llevas en el campo foo, ahora no se si no entendi la pregunta como siempre, pero prueba así a ver

Código MySQL:
Ver original
  1. SELECT tt.foo, COUNT( tt.foo ) counter
  2. FROM test t
  3. INNER JOIN test tt ON tt.foo = t.foo
  4. WHERE t.closed =0
  5. AND DATE_FORMAT( t.created_datetime,  "%Y-%m-%d" ) <= NOW( ) - INTERVAL -3
  6. GROUP BY tt.foo
  7. LIMIT 0 , 30
__________________
aprende d tus errores e incrementa tu conocimientos
it's not a bug, it's an undocumented feature By @David
php the right way