![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/10/2010, 15:54
|
| | Fecha de Ingreso: febrero-2010
Mensajes: 818
Antigüedad: 15 años 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' |