Ver Mensaje Individual
  #4  
Antiguo 09-09-2005
Avatar de Crandel
[Crandel] Crandel is offline
Miembro Premium
 
Registrado: may 2003
Ubicación: Parana, Argentina
Posts: 1.475
Reputación: 22
Crandel Va por buen camino
no entiendo porque haces la subconsulta adentro creo que debería funcionar igual haciendolo afuera, asi:

Código SQL [-]
SELECT Tipo, SUM(SiguienteVisita - Fecha)/count(Fecha)
  FROM HIST
  group by Tipo
__________________
[Crandel]
Responder Con Cita