Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/08/2011, 02:27
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: USO DE AVG y COUNT

select avg(campo) from
(select count(*) from tabla) as t1


Saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me