¿cómo podría realizar la siguiente consulta?
Código:
me tira un #1111 - Invalid use of group function select id,sum(puntos) from ptabla where sum(puntos)>=(select sum(puntos) from ptabla where id=1) group by id order by sum(puntos)