Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/11/2007, 05:34
Pez_del_Web
 
Fecha de Ingreso: julio-2007
Mensajes: 239
Antigüedad: 16 años, 10 meses
Puntos: 2
Re: problemas con grupos

que torpe soy, ya no me acordaba del having

Código:
select id,sum(puntos)
				 from ptabla 
				 group by id
                                 having sum(puntos)>=(select sum(puntos) from ptabla where id=1) 
				 order by sum(puntos)