Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/09/2007, 11:38
Avatar de iislas
iislas
Colaborador
 
Fecha de Ingreso: julio-2007
Ubicación: Mexico, D.F.
Mensajes: 6.482
Antigüedad: 16 años, 10 meses
Puntos: 180
Re: Consulta SQL del producto mas vendido

Andres95

¿No te hizo falta el COUNT()?

Select Top 1 IDCELULAR, COUNT(IDCELULAR) AS VENTAS
from Venta
Group by IdCelular
Order by count(2) desc