Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/11/2007, 15:02
Pez_del_Web
 
Fecha de Ingreso: julio-2007
Mensajes: 239
Antigüedad: 16 años, 10 meses
Puntos: 2
problemas con grupos

estoy dandole vueltas y más vueltas y no se me ocurre manera
¿cómo podría realizar la siguiente consulta?


Código:
select id,sum(puntos)
				 from ptabla 
				 where sum(puntos)>=(select sum(puntos) from ptabla where id=1) 
				 group by id
				 order by sum(puntos)
me tira un #1111 - Invalid use of group function

Última edición por Pez_del_Web; 17/11/2007 a las 19:56