Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/04/2010, 15:03
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: sql conteo de registros!!!

Select t1.ciudad, t1.totciudad FROM(SELECT ciudad, COUNT(*) totciudad FROM ubicacion WHERE pais = 'Venezuela' GROUP BY ciudad ORDER BY totciudad DESC LIMIT 20)t1 ORDER BY t1.ciudad
No lo he probado.