COUNT · AVG
Calculate the average price
How many games are in the catalog, and what is their average price?
Compare with the solution
The eight prices add up to €280, giving an average of €35.
SELECT COUNT(*) AS total_videojuegos,
ROUND(AVG(precio_euros), 2) AS precio_medio_euros
FROM videojuegos;| total_videojuegos | precio_medio_euros |
|---|---|
| 8 | 35 |