Tema: Consulta SQL
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/02/2010, 15:08
Avatar de jackson666
jackson666
 
Fecha de Ingreso: noviembre-2009
Ubicación: Buenos Aires, Argentina
Mensajes: 1.971
Antigüedad: 14 años, 6 meses
Puntos: 65
Respuesta: Consulta SQL

Cita:
Iniciado por spider_boy Ver Mensaje
No, porque COUNT te devuelve la cantidad total de IDs que hay, osea, devuelve solo un valor
Código SQL:
Ver original
  1. SELECT MAX(COUNT(DISTINCT(id))) FROM tabla;
__________________
HV Studio
Diseño y desarrollo web