Tema: Contar dias
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/05/2009, 19:59
matiasdagatti
 
Fecha de Ingreso: noviembre-2007
Mensajes: 133
Antigüedad: 16 años, 5 meses
Puntos: 0
Respuesta: Contar dias

te entiendo pero mira esto

Código:
SELECT clientes.nombre from clientes, cuenta, mov_cuenta 
where clientes.codcli = cuenta.codcliente and cuenta.codcuenta = mov_cuenta.codcuenta 
and DATEDIFF(NOW(), max(mov_cuenta.fecha))>30;
me da error

Invalid use of group function