Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/08/2005, 16:06
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 11 meses
Puntos: 5
ok listo. ya lo resolvi....
pero como hago para que los totales me los ordene descnentemente??

gracias.

lo hice asi:

Código:
 
sSQL = "select top 5 count(idtema) as totales from tblcomments where idmain<>0 and idmain in(select codigo from foromain where privado=true and activar=true) group by idtema order by totales"
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.