Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/07/2011, 07:53
Gabriel_Bazeth
 
Fecha de Ingreso: junio-2011
Ubicación: Medellin-Antioquia-Colombia
Mensajes: 13
Antigüedad: 12 años, 11 meses
Puntos: 1
Respuesta: Problema con COUNT

Ya logre resolver mi problema.

dejo aquí la solución por si alguien esta interesado

TOP 10 ARTICULO MAS VENDIDOS:

Código MySQL:
Ver original
  1. SELECT campo, COUNT( campo ) AS ventaArti
  2. FROM tabla
  3. GROUP BY campo
  4. HAVING COUNT( * ) >1
  5. ORDER BY ventaArti DESC
  6. LIMIT 0 , 10