Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/05/2002, 22:28
Avatar de urjose
urjose
 
Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 22 años, 4 meses
Puntos: 1
Re: MAX() y SUM()

Prueba así:

SELECT MAX(totalvotes)AS TOTAL_VOTOS, SUM(rating) AS RATING FROM codigos

Saludos

<center><font color=darkblue>
Urjose es patrocinado por:[/CODE]
<br><a href="http://www.internet-en-mexico.com" target="_blank" ><img border="0" src="http://www.internet-en-mexico.com/banners/logoinfo.gif"></a></center>