COUNT · AVG

Calculate the average price

How many games are in the catalog, and what is their average price?

SQLite
RESULTSReady to run
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_videojuegosprecio_medio_euros
835