Ver Mensaje Individual
  #15 (permalink)  
Antiguo 08/08/2005, 16:30
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
Cita:
Iniciado por u_goldman
Si, quizas no redacte bien, me refiero a que pongas uno a uno los campos en la funcion Group by
sip, ya estan todos ahi... estoy utilizando esto y me funciona cool pero ahora necesito que se ordene descendentmente... solo me falta eso pero me manda error...

sSQL = "select top 5 count(tblcomments.idtema) as totales, tblcomments.idmain, tblcomments.idcategoria, tblcomments.idtema, forotemas.titulo from tblcomments inner join forotemas on forotemas.codigo=tblcomments.idtema where tblcomments.idmain in(select codigo from foromain where privado=true and activar=true) group by tblcomments.idtema, tblcomments.idmain, tblcomments.idcategoria, tblcomments.idtema, forotemas.titulo"
__________________
Saruman

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