Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/10/2010, 15:54
Death_Empire
 
Fecha de Ingreso: febrero-2010
Mensajes: 818
Antigüedad: 14 años, 2 meses
Puntos: 55
Respuesta: Generar sistema para calcular nota media

con SUM y COUNT

http://dev.mysql.com/doc/refman/5.0/...ting-rows.html

http://www.tizag.com/mysqlTutorial/mysqlsum.php

SELECT SUM(nota) as suma, COUNT(*) as cantidad FROM `tabla` WHERE pelicula = 'Titanic'